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>
Sun, 6 Dec 2015 11:40:49 +0000 (12:40 +0100)
commitd73a8ae70f15d4c9145c20db709f4b06b0a8e835
tree43956e39fb986182593677d1d5ff8b9364e60e80
parentc15f5068ca830ff35787aa3943bc14da474deece
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>
(cherry picked from commit 43492ff3ab68a343c1264801baa1d5a02de10167)

Conflicts:

libavcodec/jpeg2000dec.c
libavcodec/jpeg2000dec.c