avcodec/mpeg4videodec: Check idx in mpeg4_decode_studio_block()
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 10 Mar 2019 00:40:59 +0000 (01:40 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 13 Mar 2019 23:24:44 +0000 (00:24 +0100)
commit1e50a327c649c8a00741996b9f6db83fdc00285a
tree0d63723cf7786a1091c844b3da7ba471cdcfb0ff
parentad12d9df1ed939e47cccc832ca4c363e68374adc
avcodec/mpeg4videodec: Check idx in mpeg4_decode_studio_block()

Fixes: Out of array access
Fixes: 13500/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MPEG4_fuzzer-5769760178962432

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Reviewed-by: Kieran Kunhya <kierank@obe.tv>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit d227ed5d598340e719eff7156b1aa0a4469e9a6a)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/mpeg4videodec.c