avcodec/escape124: Check buf_size against num_superblocks
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 24 Jun 2018 17:23:02 +0000 (19:23 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 25 Jun 2018 20:58:45 +0000 (22:58 +0200)
commit6677c98626489edfdb4b49b4f66ca91867768a9f
tree4f941741b1c8987bf047827fc2e379372f59ac13
parente7c0b44e747b4ccd5d682cd7e61d4bdd154434b1
avcodec/escape124: Check buf_size against num_superblocks

Fixes: Timeout
Fixes: 8722/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_ESCAPE124_fuzzer-4843268402577408

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/escape124.c