avcodec/jpeg2000dec: Check bpno in decode_cblk()
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 4 Dec 2015 15:23:24 +0000 (16:23 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 4 Dec 2015 17:54:39 +0000 (18:54 +0100)
commita85b02dcf70f62a6a433a607143f1f78fa5648bb
treee7747f2df7f5759c4ff66c45c4f60a9da0e755ee
parent5d2cc00dd01911a3ffab746230f0a54eea7957e1
avcodec/jpeg2000dec: Check bpno in decode_cblk()

Fixes: undefined shift
Fixes: c409ef86f892335a0a164b5871174d5a/asan_heap-oob_1dff564_2159_162b7234616deab02b544410455eb07b.mov

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/jpeg2000dec.c