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 while decompressing #8

Closed
frewsxcv opened this issue Oct 26, 2015 · 2 comments
Closed

Panic while decompressing #8

frewsxcv opened this issue Oct 26, 2015 · 2 comments
Assignees
Labels

Comments

@frewsxcv
Copy link
Contributor

extern crate brotli;

use std::io::Read;
use brotli::Decompressor;

fn main() {
    let mut input = vec![];
    let _ = Decompressor::new(&b"\x15\x3f\x60\x00\x15\x3f\x60\x00\x27\xb0\xdb\xa8\x80\x25\x27\xb0\xdb\x40\x80\x12".to_vec() as &[u8]).read_to_end(&mut input);
}
coreyf@frewbook-pro /t/meow (master) [101]> cargo run
     Running `target/debug/meow`
thread '<main>' panicked at 'shift operation overflowed', /Users/coreyf/.cargo/git/checkouts/brotli-rs-33811c30552ad7ba/master/src/lib.rs:1162
Process didn't exit successfully: `target/debug/meow` (exit code: 101)

Crash discovered using afl.rs

@ende76 ende76 added the bug label Oct 26, 2015
@ende76 ende76 self-assigned this Oct 26, 2015
@ende76
Copy link
Owner

ende76 commented Oct 26, 2015

Input's getting longer… Maybe there is hope yet.

@ende76 ende76 closed this as completed Oct 26, 2015
@frewsxcv
Copy link
Contributor Author

The next AFL run has been running for about twenty minutes right now and it hasn't found anything. I'm going to sleep and will report back in the morning or whenever it finds something. Great work today!

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