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>
Thu, 12 Nov 2015 01:55:47 +0000 (02:55 +0100)
commit169a02da1e39915f20f21d67de5747e1752d8da2
treede8d030d2098907472835e9b5b5c20d55b6bdd00
parentaf3a608e7e3de4d4a0d35dc527980601f9f36969
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