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>
Sun, 6 Dec 2015 11:40:51 +0000 (12:40 +0100)
commit311de799a81ed67b62805f9d72684a5405563c93
tree622e8e9c1724e561b2fc064de2f3af34c4af7a3b
parentc676db730e36e07e7f86b590ca14fb1745584891
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>
(cherry picked from commit a85b02dcf70f62a6a433a607143f1f78fa5648bb)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/jpeg2000dec.c