avcodec/mjpegdec: sanity check bits
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 11 Oct 2014 22:25:47 +0000 (00:25 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 11 Oct 2014 22:28:07 +0000 (00:28 +0200)
commit0db1f2c2c78db18999fccd46a156408e5e87c8a1
treecf81083be395c5636616bdf5a863bcfea84d3849
parent903156aa8a352a5df34cd1e34c21b2193a447d5e
avcodec/mjpegdec: sanity check bits

Fixes undefined shift
Fixes: asan_heap-oob_16668e9_2_asan_heap-oob_16668e9_346_miss_congeniality_pegasus_mjpg.avi

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