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>
Wed, 4 Feb 2015 19:14:18 +0000 (20:14 +0100)
commitafa92907f3c6a0c3bdad766ec8d938ee17ee1c9e
tree16128a5a9757a4ff6e960632dc16e6b7e19d9789
parent7f02fcd91774818ad36cafde44aefe8924aa15b7
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