avcodec/fic: Check that there is input left in fic_decode_block()
authorMichael Niedermayer <michael@niedermayer.cc>
Tue, 22 Jan 2019 23:30:53 +0000 (00:30 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 24 Mar 2019 09:39:03 +0000 (10:39 +0100)
commit20337eb1068049692f0c1f9c8a924ca127cdae77
tree825129412f118aaeedf448ca7fd764eb4497d8d7
parent8ea2558ab7b82163fa018fa9076dcf536b55b103
avcodec/fic: Check that there is input left in fic_decode_block()

Fixes: Timeout
Fixes: 12450/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_FIC_fuzzer-5661984622641152

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