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>
Thu, 21 Mar 2019 09:42:52 +0000 (10:42 +0100)
commit2a2bc7918727eb2d1baa8e2eaffff7e279d0d9b1
tree6f5198efe5a445d3e0febfb256c75856d5a0f529
parent599cfce022b3d7f7b3641867254c7d8a2e027497
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