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>
Mon, 11 Mar 2019 23:48:56 +0000 (00:48 +0100)
commitd227ed5d598340e719eff7156b1aa0a4469e9a6a
tree9478f5ff3be6ab014d0fbd6321247e016e7e7bbc
parent3f086a2f665f9906e0f6197cddbfacc2f4b093a1
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>
libavcodec/mpeg4videodec.c