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, 9 Jul 2018 23:52:56 +0000 (01:52 +0200)
commit9bfdb49b74026f380488cd857f0dddf7bb3834ca
tree1683a6a3a530fa4b40a67cb835c03012db9a0507
parent8db6c2993bb58937167dd2d4b8014ea4ab784846
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