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>
Mon, 9 Jul 2018 23:52:55 +0000 (01:52 +0200)
commit23dcc9ff7c37e8da1808802be66de89d70b06599
tree29e9fb01419a086f56e0fd8774651fadf98ec147
parent54bde32f37fd69c556c1c65047f9d27c2a6da229
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>
(cherry picked from commit 8d381b57fd9d17fb5c3a851ca46c738b3afc33a2)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/mjpegdec.c
libavcodec/mjpegdec.h