avcodec/msp2dec: Check available space in RLE decoder
authorMichael Niedermayer <michael@niedermayer.cc>
Tue, 6 Apr 2021 21:14:08 +0000 (23:14 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 8 Apr 2021 20:55:16 +0000 (22:55 +0200)
commitaeba1a4c20cf37f1cbbd6338783e18cfb463b0c7
tree6fcf63d7d0c6ef4ae201daa8637044e95e3db53b
parentd22550dd61003ffefc1a7738b2c14916083116a9
avcodec/msp2dec: Check available space in RLE decoder

Fixes: out of array read
Fixes: 32968/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MSP2_fuzzer-5315296027082752

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 caaf4633117f77a545975dac18e85b8fcdbc9ce7)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/msp2dec.c