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, 22 Oct 2018 23:44:40 +0000 (01:44 +0200)
commitd862380718a10132686130b4532bf3f9b3f70f14
tree9277df525dc8649c4504817c606255e53e06408e
parenteaefd3ada963aa35277a466170c6be3e2cbeabfc
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