avcodec/jpeg2000dec: Clip all tile coordinates
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 7 Nov 2015 01:16:11 +0000 (02:16 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 7 Nov 2015 01:17:04 +0000 (02:17 +0100)
commit43492ff3ab68a343c1264801baa1d5a02de10167
tree0b576cb72fc4a586166acccd4470e0946786efab
parentc719cd6cf79ec21d974b81ba874580f4b8e9eb90
avcodec/jpeg2000dec: Clip all tile coordinates

Fixes out of array access
Fixes: b877a6b788a25c70e8b1d014f8628549/asan_heap-oob_1da2c3f_2324_5a1b329b0b3c4bb6b1d775660ac56717.r3d

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