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, 16 Jul 2018 17:06:27 +0000 (19:06 +0200)
commit38fd80c656b4550ac6a7aef0bf3d83027784226f
treee4895510f2c005574605e25ea4e92d18a6f65588
parentd48738bd674f70131df4581936ef0125f1c26c5c
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