{"action":"created","issue":{"url":"https://api.github.com/repos/ende76/brotli-rs/issues/19","repository_url":"https://api.github.com/repos/ende76/brotli-rs","labels_url":"https://api.github.com/repos/ende76/brotli-rs/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/ende76/brotli-rs/issues/19/comments","events_url":"https://api.github.com/repos/ende76/brotli-rs/issues/19/events","html_url":"https://github.com/ende76/brotli-rs/issues/19","id":138774539,"number":19,"title":"brotli-rs fails to decompress item compressed with -q 4 -w 16","user":{"login":"danielrh","id":47249,"avatar_url":"https://avatars.githubusercontent.com/u/47249?v=3","gravatar_id":"","url":"https://api.github.com/users/danielrh","html_url":"https://github.com/danielrh","followers_url":"https://api.github.com/users/danielrh/followers","following_url":"https://api.github.com/users/danielrh/following{/other_user}","gists_url":"https://api.github.com/users/danielrh/gists{/gist_id}","starred_url":"https://api.github.com/users/danielrh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielrh/subscriptions","organizations_url":"https://api.github.com/users/danielrh/orgs","repos_url":"https://api.github.com/users/danielrh/repos","events_url":"https://api.github.com/users/danielrh/events{/privacy}","received_events_url":"https://api.github.com/users/danielrh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-06T09:29:44Z","updated_at":"2016-03-06T09:30:43Z","closed_at":null,"body":"I tried this on the bro binary from google and it fails to decompress with brotli-rs when compressed using -q 4 -w 16\r\n\r\nhttps://www.dropbox.com/s/il9uhagaaawxl6i/bro?dl=0\r\n\r\nhttps://www.dropbox.com/s/2lb4dzpjczbv8ll/bro.br?dl=0\r\n\r\nbut this is true for almost every binary I checked...\r\nin fact I just wrote a checker script that simply, in a loop, compresses with bro -q X -w Y\r\nwhere x = {1..11} and y = {16..22}\r\nThat's how I found this glitch.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/ende76/brotli-rs/issues/comments/192850915","html_url":"https://github.com/ende76/brotli-rs/issues/19#issuecomment-192850915","issue_url":"https://api.github.com/repos/ende76/brotli-rs/issues/19","id":192850915,"user":{"login":"danielrh","id":47249,"avatar_url":"https://avatars.githubusercontent.com/u/47249?v=3","gravatar_id":"","url":"https://api.github.com/users/danielrh","html_url":"https://github.com/danielrh","followers_url":"https://api.github.com/users/danielrh/followers","following_url":"https://api.github.com/users/danielrh/following{/other_user}","gists_url":"https://api.github.com/users/danielrh/gists{/gist_id}","starred_url":"https://api.github.com/users/danielrh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielrh/subscriptions","organizations_url":"https://api.github.com/users/danielrh/orgs","repos_url":"https://api.github.com/users/danielrh/repos","events_url":"https://api.github.com/users/danielrh/events{/privacy}","received_events_url":"https://api.github.com/users/danielrh/received_events","type":"User","site_admin":false},"created_at":"2016-03-06T09:30:43Z","updated_at":"2016-03-06T09:30:43Z","body":"Probably not helpful but here's the stack trace\r\n\r\n351153\r\nthread '<main>' panicked at 'index out of bounds: the len is 16 but the index is 31', ../src/libcollections/vec.rs:1134\r\nstack backtrace:\r\n   1:        0x10ac55168 - sys::backtrace::tracing::imp::write::ha0f40157033dab87T8t\r\n   2:        0x10ac568e5 - panicking::default_handler::_<closure>::closure.42228\r\n   3:        0x10ac56444 - panicking::default_handler::hfa48369cd11de99dKcy\r\n   4:        0x10ac4e844 - sys_common::unwind::begin_unwind_inner::h1122abee381015baUbt\r\n   5:        0x10ac4eace - sys_common::unwind::begin_unwind_fmt::h3636a0d12a6c9e2f0at\r\n   6:        0x10ac54767 - rust_begin_unwind\r\n   7:        0x10ac76a90 - panicking::panic_fmt::h596d44ac9aaebe47nYL\r\n   8:        0x10ac76c10 - panicking::panic_bounds_check::hb399db976cf4f929tXL\r\n   9:        0x10ac39e6f - Decompressor<R>::decompress::h10570345981971389827\r\n  10:        0x10ac2d152 - main::h60ef4bbe838695fcmaa\r\n  11:        0x10ac560c2 - sys_common::unwind::try::try_fn::h6542981591240630136\r\n  12:        0x10ac54708 - __rust_try\r\n  13:        0x10ac55f65 - rt::lang_start::h83533f65c37de1a9Q4x"}}