avcodec/jpeg2000dec: check len before parsing header
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 14 Jun 2013 17:20:10 +0000 (19:20 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 14 Jun 2013 17:34:00 +0000 (19:34 +0200)
commit69e4d8e6a4cefdf1b19f5d4d1293aa881d6064e8
tree62226531e10e27598e5f12ae24250f66cc099982
parent5deb96c5641c58d4c1a820971347c3f76cc945d4
avcodec/jpeg2000dec: check len before parsing header

Fixes out of array read

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