jpeg2000dec: read and check curtileno
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 22 May 2013 00:29:00 +0000 (02:29 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 22 May 2013 00:29:49 +0000 (02:29 +0200)
commitfec8783883f789802ba6596ce4c324aa5c040754
tree6b0c9c741a2f687bb37f5daad49a42480c311031
parentf399b33c2bb7a25b0a60d50afc81d5e1967ca35a
jpeg2000dec: read and check curtileno

Fixes out of array accesses
Code ported from j2kdec

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/jpeg2000dec.c