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

panic in residue_packet_decode_inner #42

Closed
Shnatsel opened this issue Feb 24, 2019 · 2 comments
Closed

panic in residue_packet_decode_inner #42

Shnatsel opened this issue Feb 24, 2019 · 2 comments
Labels

Comments

@Shnatsel
Copy link
Contributor

Shnatsel commented Feb 24, 2019

lewton panics in residue_packet_decode_inner given crafted input. Error message:
'index 21 out of range for slice of length 16' and similar with varying indices and lengths.

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

Sample files triggering the crash: oor-panic-in-residue_packet_decode_inner.zip

Found with AFL.rs.

@est31 est31 added the bug label Feb 24, 2019
@est31
Copy link
Member

est31 commented Feb 26, 2019

Hmm so this bug is weird. When I check whether codebook_dimensions + partition_size > vec_v.len() beforehand, the unit tests start failing. So I need to put the check into the loop :/. Let's just make the error silent.

@est31
Copy link
Member

est31 commented Feb 26, 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