avcodec/mjpegdec: pass into ff_mjpeg_decode_sos() and check bitmask size
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 31 Jan 2014 16:57:17 +0000 (17:57 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 31 Jan 2014 17:34:08 +0000 (18:34 +0100)
commit2884688bd51a808ccda3c0e13367619cd79e0579
tree67476bc1055452cc5719b31aa41e949b2206f3fd
parent13aa82bbbb71c04bdcecf1341be4a23aee271bec
avcodec/mjpegdec: pass into ff_mjpeg_decode_sos() and check bitmask size

Fixes: heap array overread
Fixes: asan_heap-oob_149b2bc_6577_m1.mxg
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/mjpegbdec.c
libavcodec/mjpegdec.c
libavcodec/mjpegdec.h
libavcodec/mxpegdec.c