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, 9 Jul 2018 23:52:56 +0000 (01:52 +0200)
commit888bdb127b545731148d7f678f69c863a55889a8
tree905c18f0bef8de16ce2a2ae101fc40d1bf89537d
parentfc097bf1cd0af7bbab09e2f1af4ae39eb0ca4eea
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