avcodec/mjpegdec: Check escape sequence validity
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 4 Feb 2015 19:13:18 +0000 (20:13 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 13 Mar 2015 16:06:09 +0000 (17:06 +0100)
commit6b4fc845f5c7b5618c3bf964ac89efc91b534093
treef6251c1353365d2b79038eaa076ce1e1deda74af
parent485f78be206fac4dd74090a62a4498eabb1d488d
avcodec/mjpegdec: Check escape sequence validity

Fixes assertion failure
Fixes: asan_heap-oob_1c1a4ea_1242_cov_2274415971_TESTcmyk.jpg

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