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, 18 Nov 2018 01:35:03 +0000 (02:35 +0100)
commit2baee6dd1b9e33d88c7a6621a00a487f9c3fd95e
tree0b66ea3396ae8cbcc7e26b23a653699089f3f257
parent5fe92631fc2015ced579da5fe4efa8fc52042911
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