avcodec/mjpegdec: Check for end of bitstream in ljpeg_decode_rgb_scan()
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 21 Jun 2018 20:48:54 +0000 (22:48 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 16 Jul 2018 17:06:27 +0000 (19:06 +0200)
commit4fb69a60f6c0bdb335c2e86a2f1d2a8bd147ead6
treee07cfc313d9a9da0dddd26e5e19cc5de5f880678
parent516f8dbc58a2777b23065e83157f8462d00600dd
avcodec/mjpegdec: Check for end of bitstream in ljpeg_decode_rgb_scan()

Fixes: Timeout
Fixes: 8648/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MJPEG_fuzzer-5108395525799936

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