Skip to content

Commit

Permalink
avformat/electronicarts: Clear partial_packet on error
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Michael Niedermayer <[email protected]>
  • Loading branch information
michaelni committed Feb 12, 2021
1 parent 7a2aa5d commit 59bb9dc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libavformat/electronicarts.c
Original file line number Diff line number Diff line change
Expand Up @@ -728,6 +728,7 @@ static int ea_read_packet(AVFormatContext *s, AVPacket *pkt)
ret = av_get_packet(pb, pkt, chunk_size);
if (ret < 0) {
packet_read = 1;
partial_packet = 0;
break;
}
partial_packet = chunk_type == MVIh_TAG;
Expand Down

0 comments on commit 59bb9dc

Please sign in to comment.