Closed
Description
extern crate brotli;
use std::io::Read;
use brotli::Decompressor;
fn main() {
let mut input = vec![];
let _ = Decompressor::new(&b"\x1b\x3f\x01\xf0\x24\xb0\xc2\xa4\x80\x54\xff\xd7\x24\xb0\x12".to_vec() as &[u8]).read_to_end(&mut input);
}
coreyf@frewbook-pro /t/meow (master)> cargo run
Compiling brotli v0.3.11 (https://github.com/ende76/brotli-rs#3540aa18)
Compiling meow v0.1.0 (file:///private/tmp/meow)
Running `target/debug/meow`
thread '<main>' panicked at 'internal error: entered unreachable code', /Users/coreyf/.cargo/git/checkouts/brotli-rs-33811c30552ad7ba/master/src/transformation/mod.rs:35
Process didn't exit successfully: `target/debug/meow` (exit code: 101)
Crash discovered using afl.rs