avcodec/eatqi: Check for minimum frame size
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 28 Jul 2019 20:29:57 +0000 (22:29 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 4 Aug 2019 19:16:28 +0000 (21:16 +0200)
commit8a03611020b95fed211a4fe93fc06798015698dc
treeaed11089e25c7c51edfe944a59fc233c3ceb0406
parent6b04a5dd2d7f3ea81aeaee01bca4bdd1edcc22ac
avcodec/eatqi: Check for minimum frame size

The minimum header is 8 bytes, the smallest bitstream that is passed to
the MB decode code is 4 bytes

Fixes: Timeout (35sec -> 18sec)
Fixes: 15800/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_EATQI_fuzzer-5684154517159936

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 5ffb8e879389fb0642654e3233cfeca1f9841e52)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/eatqi.c