diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2021-02-11 22:40:21 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2021-10-09 22:02:20 +0200 |
commit | f9ab9bfe4ee0ee33945dc001e1ff83a93789a381 (patch) | |
tree | 4653c8bfc4840d7e2e326d17c8645cc2c614960c | |
parent | e5dac881848ac1004942e5cd7ed82135d84ac604 (diff) | |
download | ffmpeg-f9ab9bfe4ee0ee33945dc001e1ff83a93789a381.tar.gz |
avformat/electronicarts: Clear partial_packet on error
Fixes: Infinite loop
Fixes: 30165/clusterfuzz-testcase-minimized-ffmpeg_dem_EA_fuzzer-6224642371092480
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 59bb9dc2a670cbe5d659585392b6d79f7bb6d40f)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r-- | libavformat/electronicarts.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/electronicarts.c b/libavformat/electronicarts.c index 17018fb983..6fa0fa2212 100644 --- a/libavformat/electronicarts.c +++ b/libavformat/electronicarts.c @@ -729,6 +729,7 @@ get_video_packet: ret = av_get_packet(pb, pkt, chunk_size); if (ret < 0) { packet_read = 1; + partial_packet = 0; break; } partial_packet = chunk_type == MVIh_TAG; |