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:32:08 +0000 (10:32 +0200)
commit6c75df556f8ce97398789f363f5b323ae3abc920
treed77deff9fb0d2b2f6b4c8e412938310246e320cf
parent58cd70201edc57b46fb4ad8c0810725f0bf80c86
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>
(cherry picked from commit 3a0ec1511e7040845a0d1ce99fe2f30a0972b6d2)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/rscc.c