avcodec/mjpegdec: Check for bits left in mjpeg_decode_scan_progressive_ac()
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 22 Aug 2021 18:47:00 +0000 (20:47 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 28 Aug 2021 18:03:21 +0000 (20:03 +0200)
commit909faca929cf30dcd439fa33479177e76fb5121d
tree66104261d7f166af59a4da668c2449bf5c0481ba
parent2c0d522963a8eaca8949946112656651baa367b2
avcodec/mjpegdec: Check for bits left in mjpeg_decode_scan_progressive_ac()

Fixes: Timeout
Fixes: 36262/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_JPEGLS_fuzzer-4969052454912000

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