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>
Thu, 12 Mar 2015 17:03:50 +0000 (18:03 +0100)
commit5c0413aa85f75cd9b9beffd984947560a080d914
tree66b5e0709351509676b13644a39930c94e045f41
parentd0a925ba2e7c299da93956a61b6a95a8c909e0f2
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