Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Infinite loop on malformed input #46

Closed
Shnatsel opened this issue Mar 3, 2019 · 1 comment
Closed

Infinite loop on malformed input #46

Shnatsel opened this issue Mar 3, 2019 · 1 comment
Labels

Comments

@Shnatsel
Copy link
Contributor

Shnatsel commented Mar 3, 2019

Lewton enters an apparently infinite loop on decoding this file: lewton-infinite-loop.ogg.zip

Steps to reproduce:
RUSTFLAGS='--cfg=fuzzing' cargo run --release --example perf /path/to/file.ogg

Tested on commit 9078060. Found with AFL.rs

@est31 est31 added the bug label Mar 3, 2019
@est31
Copy link
Member

est31 commented Mar 3, 2019

The repacked sample is: bug-46-sample001.ogg.zip

est31 added a commit that referenced this issue Mar 3, 2019
The infinite loop is caused by classwords_per_codeword
being zero, which makes partition_count never increase
so the while partition_count < partitions_to_read loop
never terminates.
@est31 est31 closed this as completed in 4057d42 Mar 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants