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, 20 Dec 2015 09:59:28 +0000 (10:59 +0100)
commit7294d95689f9d70f565cb3aa8f485bed1d79928b
treef07099e70ce750a50332bdcb21272add7b31418e
parent8681296bb97ff0baa6aa80548b08e33910a9fc8c
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