avcodec/fic: Check available input space for cursor
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 5 May 2018 20:00:01 +0000 (22:00 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 22 Oct 2018 23:44:40 +0000 (01:44 +0200)
commit1747563cead72a0ca74aef54317e21bba9457b01
tree0ff7fa38664232cb11db0c4d67b22e9af523f623
parent00c18862a3134fb09811c5250492712c54b8130b
avcodec/fic: Check available input space for cursor

Fixes: out of array read
Fixes: 6546/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_FIC_fuzzer-6317064647081984

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