avcodec/rasc: Check input space before reading chunk
authorMichael Niedermayer <michael@niedermayer.cc>
Wed, 5 Dec 2018 01:18:51 +0000 (02:18 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 21 Jan 2019 06:53:26 +0000 (07:53 +0100)
commit9b5a6bb67ba35b3442667964f9e3a7e330b10bdc
treebd1149f60795976dbd47459384bf7ad27fd937fd
parent219cbc55277ab64b305c82bfa1f85e919610f81d
avcodec/rasc: Check input space before reading chunk

Fixes: Timeout
Fixes: 11118/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_RASC_fuzzer-5652564066959360

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