j2kdec & jpeg2000dec: check lengthinc against array size
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 22 May 2013 02:05:36 +0000 (04:05 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 22 May 2013 02:18:38 +0000 (04:18 +0200)
commit914ab4cd1c59eae10771f2d6a892ec6b6f36b0e2
treed112cad05b0fb5449875df81c686303392fcadd5
parent17e66c9ff4774e254932d34dade77b1c04139a4f
j2kdec & jpeg2000dec: check lengthinc against array size

Fixes out of array reads

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