This is an automated email from the git hooks/post-receive script.
Git pushed a commit to branch master
in repository ffmpeg.
The following commit(s) were added to refs/heads/master by this push:
new 40e0463113 avformat/mov: free item_name on infe entry parsing failure
40e0463113 is described below
commit 40e04631133402701a9365e11f152ed7b8c57a61
Author: James Almer <[email protected]>
AuthorDate: Sun Feb 22 23:15:47 2026 -0300
Commit: James Almer <[email protected]>
CommitDate: Sun Feb 22 23:16:15 2026 -0300
avformat/mov: free item_name on infe entry parsing failure
Fixes regression since 28c330d0f3f3.
Signed-off-by: James Almer <[email protected]>
---
libavformat/mov.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/libavformat/mov.c b/libavformat/mov.c
index 2b2a2da9f2..46dac965a2 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -9025,8 +9025,10 @@ static int mov_read_infe(MOVContext *c, AVIOContext *pb,
MOVAtom atom)
av_bprint_finalize(&item_name, NULL);
return AVERROR(ENOMEM);
}
- if (i == c->nb_heif_item)
+ if (i == c->nb_heif_item) {
+ av_bprint_finalize(&item_name, NULL);
return AVERROR_INVALIDDATA;
+ }
av_freep(&item->name);
av_bprint_finalize(&item_name, ret ? &item->name : NULL);
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]