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>
Tue, 18 Sep 2018 22:46:41 +0000 (00:46 +0200)
commite33b28cc79d164fff22bfee750c9283587c00bc4
tree50360a0426d66a5cf041ffbb6f2abe63c07dcab9
parent3d201b83cda03fd9e866acafee82d7ce88260e66
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>
libavcodec/zmbv.c