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, 22 Oct 2018 23:44:40 +0000 (01:44 +0200)
commit1e067b7ed86c55382699330b9e9bb1d743627974
treea9426732081163425d2e5e7825b0630edea34c6e
parentd862380718a10132686130b4532bf3f9b3f70f14
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>
(cherry picked from commit 6677c98626489edfdb4b49b4f66ca91867768a9f)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/escape124.c