avcodec/mpeg4videodec: Check rice_prefix_code
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 14 Sep 2018 22:09:45 +0000 (00:09 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 19 Sep 2018 21:08:23 +0000 (23:08 +0200)
commitfb7b0347b3317d606af2082ccd029e38a2ff6cb0
treea8408f0ac64908eb008f15831ffc332dd83322f4
parent7ed8d5cfd94a53cca3599d40d2d9d2a8ee6f1bb8
avcodec/mpeg4videodec: Check rice_prefix_code

Fixes: out of array read
Fixes: 10064/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MPEG4_fuzzer-5766801384800256
Fixes: 10225/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MPEG4_fuzzer-5071833448054784
Fixes: 10261/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MPEG4_fuzzer-5115048024866816

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