avcodec/mjpegdec: Check input buffer size.
authorMichael Niedermayer <michael@niedermayer.cc>
Tue, 10 Apr 2018 14:12:15 +0000 (16:12 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 12 Apr 2018 21:52:59 +0000 (23:52 +0200)
commit8d381b57fd9d17fb5c3a851ca46c738b3afc33a2
tree8296b1203311fc36e1a1e82eceff2673b377d711
parent8c02cd8ca097871dcd00cf8e08ce51660873f405
avcodec/mjpegdec: Check input buffer size.

Fixes: Timeout
Fixes: 6381/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_JPEGLS_fuzzer-5665032743419904

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
libavcodec/mjpegdec.h