avcodec/zmbv: Check that the decompressed data size is correct
authorMichael Niedermayer <michael@niedermayer.cc>
Mon, 17 Sep 2018 22:28:37 +0000 (00:28 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 7 Oct 2018 19:34:00 +0000 (21:34 +0200)
commit47f608a7e146d57bb910c3b2e2f4dd24ecef4ab1
tree46a30f5ff8d52355859b27397b6c31484cb19c62
parent5af88171e73882a3f9642a4067bca24097bb6755
avcodec/zmbv: Check that the decompressed data size is correct

This checks the value exactly for intra frames and checks it against a
minimum for inter frames as they can be variable.

Fixes: Timeout
Fixes: 10182/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_ZMBV_fuzzer-6245951174344704

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 e33b28cc79d164fff22bfee750c9283587c00bc4)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/zmbv.c