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 #11

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

Panic while decompressing #11

frewsxcv opened this issue Oct 26, 2015 · 0 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"\x5b\xff\x00\x01\x40\x0a\x00\xab\x16\x7b\xac\x14\x48\x4e\x73\xed\x01\x92\x03".to_vec() as &[u8]).read_to_end(&mut input);
}

Crash discovered using afl.rs

@ende76 ende76 added the bug label Oct 26, 2015
@ende76 ende76 self-assigned this Oct 26, 2015
ende76 added a commit that referenced this issue Oct 26, 2015
@ende76 ende76 closed this as completed Oct 26, 2015
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