aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2021-02-11 22:40:21 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2021-10-17 21:34:53 +0200
commitee2e0040b8cc37ab934950f4ac26849d484f88cf (patch)
tree135a7667c96caeba1ccab59d7a6ac065f6f387ba /libavformat
parent680c8f508bfc0d64798c027a5dc6c79af74ba162 (diff)
downloadffmpeg-ee2e0040b8cc37ab934950f4ac26849d484f88cf.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>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/electronicarts.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/electronicarts.c b/libavformat/electronicarts.c
index b99d4703a1..7bcbebe1a8 100644
--- a/libavformat/electronicarts.c
+++ b/libavformat/electronicarts.c
@@ -697,6 +697,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;