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 5ec31dac94 avformat/mov: fix memory leak on error
5ec31dac94 is described below
commit 5ec31dac94e1b61f4251c3108d886eb0ab082987
Author: James Almer <[email protected]>
AuthorDate: Sat Jan 17 17:52:48 2026 -0300
Commit: James Almer <[email protected]>
CommitDate: Sat Jan 17 17:52:52 2026 -0300
avformat/mov: fix memory leak on error
Regression since 52b19773530f332d546360dfd6142674d077d8d9.
Fixes CID 1680454.
Signed-off-by: James Almer <[email protected]>
---
libavformat/mov.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/libavformat/mov.c b/libavformat/mov.c
index f219dd2625..d19b213ffa 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -10414,8 +10414,10 @@ static int mov_parse_exif_item(AVFormatContext *s,
if (!buf)
return AVERROR(ENOMEM);
- if (offset > INT64_MAX - ref->extent_offset)
- return AVERROR_INVALIDDATA;
+ if (offset > INT64_MAX - ref->extent_offset) {
+ err = AVERROR(ENOMEM);
+ goto fail;
+ }
avio_seek(s->pb, ref->extent_offset + offset, SEEK_SET);
err = avio_read(s->pb, buf->data, ref->extent_length);
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]