avcodec/mjpegdec: Check remaining bitstream in ljpeg_decode_yuv_scan()
authorMichael Niedermayer <michael@niedermayer.cc>
Tue, 24 Jan 2017 15:13:05 +0000 (16:13 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 3 Feb 2017 14:59:14 +0000 (15:59 +0100)
commit02323b1d025cd54373c614c1020e35e51f06eba5
tree7994099741eeee258c58d7bda2dd6e87c1b8253e
parent99c78466ff27311b2a06d874cb7bbd8b1cefc597
avcodec/mjpegdec: Check remaining bitstream in ljpeg_decode_yuv_scan()

Fixes timeout
Fixes: 445/fuzz-3-ffmpeg_VIDEO_AV_CODEC_ID_MJPEG_fuzzer
Fixes: 456/fuzz-2-ffmpeg_VIDEO_AV_CODEC_ID_JPEGLS_fuzzer

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 755933cb5cd17decd1838d3d64e07d4157de5638)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/mjpegdec.c