avcodec/rscc: Check that the to be uncompressed input is large enough
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 31 Mar 2019 15:31:17 +0000 (17:31 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 1 Apr 2019 08:30:06 +0000 (10:30 +0200)
commit3a0ec1511e7040845a0d1ce99fe2f30a0972b6d2
treea91514d8587f0beae6286d6bcb5e2e873a1dd558
parent27c94c57dc84da8125225fda7d241be57d19b391
avcodec/rscc: Check that the to be uncompressed input is large enough

Fixes: Out of array access
Fixes: 13984/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_RSCC_fuzzer-5734128093233152

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/rscc.c