ffmpeg | branch: master | James Almer <jamr...@gmail.com> | Sun Jun 30 23:40:21 2024 -0300| [235ba14cc0e294d62e4fba58229f935c5551671a] | committer: James Almer
avformat/mov: check for EOF inside the infe list parsing loop Signed-off-by: James Almer <jamr...@gmail.com> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=235ba14cc0e294d62e4fba58229f935c5551671a --- libavformat/mov.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavformat/mov.c b/libavformat/mov.c index e8b7420fc7..f07eab4d90 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -8554,6 +8554,8 @@ static int mov_read_iinf(MOVContext *c, AVIOContext *pb, MOVAtom atom) for (i = 0; i < entry_count; i++) { MOVAtom infe; + if (avio_feof(pb)) + return AVERROR_INVALIDDATA; infe.size = avio_rb32(pb) - 8; infe.type = avio_rl32(pb); ret = mov_read_infe(c, pb, infe, i); _______________________________________________ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog To unsubscribe, visit link above, or email ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".