avcodec/dfa: Check the chunk header is not truncated
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 10 Mar 2019 22:45:19 +0000 (23:45 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 24 Mar 2019 09:39:03 +0000 (10:39 +0100)
commit9e96567e14b4010d8e63186dccc89aee8784fe08
tree62c4e259d57ea92fb240eba16f72f7964b98d9d7
parent5d28b2dc3737cdd5799e0bdb3593d94f604e8fc6
avcodec/dfa: Check the chunk header is not truncated

Fixes: Timeout (11sec -> 3sec)
Fixes: 13218/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_DFA_fuzzer-5661074316066816

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