{"action":"opened","issue":{"url":"https://api.github.com/repos/ende76/brotli-rs/issues/10","labels_url":"https://api.github.com/repos/ende76/brotli-rs/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/ende76/brotli-rs/issues/10/comments","events_url":"https://api.github.com/repos/ende76/brotli-rs/issues/10/events","html_url":"https://github.com/ende76/brotli-rs/issues/10","id":113384977,"number":10,"title":"Panic while decompressing","user":{"login":"frewsxcv","id":416575,"avatar_url":"https://avatars.githubusercontent.com/u/416575?v=3","gravatar_id":"","url":"https://api.github.com/users/frewsxcv","html_url":"https://github.com/frewsxcv","followers_url":"https://api.github.com/users/frewsxcv/followers","following_url":"https://api.github.com/users/frewsxcv/following{/other_user}","gists_url":"https://api.github.com/users/frewsxcv/gists{/gist_id}","starred_url":"https://api.github.com/users/frewsxcv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frewsxcv/subscriptions","organizations_url":"https://api.github.com/users/frewsxcv/orgs","repos_url":"https://api.github.com/users/frewsxcv/repos","events_url":"https://api.github.com/users/frewsxcv/events{/privacy}","received_events_url":"https://api.github.com/users/frewsxcv/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-26T15:48:05Z","updated_at":"2015-10-26T15:48:05Z","closed_at":null,"body":"```\r\nextern crate brotli;\r\n\r\nuse std::io::Read;\r\nuse brotli::Decompressor;\r\n\r\nfn main() {\r\n    let mut input = vec![];\r\n    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);\r\n}\r\n```\r\n```\r\ncoreyf@frewbook-pro /t/meow (master)> cargo run\r\n   Compiling brotli v0.3.11 (https://github.com/ende76/brotli-rs#3540aa18)\r\n   Compiling meow v0.1.0 (file:///private/tmp/meow)\r\n     Running `target/debug/meow`\r\nthread '<main>' panicked at 'internal error: entered unreachable code', /Users/coreyf/.cargo/git/checkouts/brotli-rs-33811c30552ad7ba/master/src/transformation/mod.rs:35\r\nProcess didn't exit successfully: `target/debug/meow` (exit code: 101)\r\n```\r\n\r\nCrash discovered using [afl.rs](https://github.com/frewsxcv/afl.rs)"}}