avcodec/anm: Check input size for a frame with just a stop code
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 15 Aug 2019 19:00:54 +0000 (21:00 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 18 Aug 2019 20:12:55 +0000 (22:12 +0200)
commit1965161ef6d2aac8d3b034570c3da69dabca9e71
treef283b8d0500e7974ce1a54be73fe510a2f60aca9
parentcff309097a3af4f7f2acb5b5f9fb914ba9ae45c3
avcodec/anm: Check input size for a frame with just a stop code

Fixes: Timeout (11sec -> 6sec)
Fixes: 16344/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_ANM_fuzzer-5673032000995328

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Reviewed-by: Peter Ross <pross@xvid.org>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/anm.c