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 b553b810c4 avformat/movenc: free sgpd_entries on the roll-distance
error path
b553b810c4 is described below
commit b553b810c460e484f70a7368ed7abbdcecbe845b
Author: Michael Niedermayer <[email protected]>
AuthorDate: Mon Jun 29 01:35:05 2026 +0200
Commit: michaelni <[email protected]>
CommitDate: Tue Jun 30 17:29:51 2026 +0000
avformat/movenc: free sgpd_entries on the roll-distance error path
Found-by: Ao Xijie
Signed-off-by: Michael Niedermayer <[email protected]>
---
libavformat/movenc.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index 536b16a152..b1ec603eb6 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -3364,8 +3364,10 @@ static int mov_preroll_write_stbl_atoms(AVIOContext *pb,
MOVTrack *track)
if (roll_samples_remaining > 0)
distance = 0;
/* Verify distance is a maximum of 32 (2.5ms) packets. */
- if (distance > 32)
+ if (distance > 32) {
+ av_freep(&sgpd_entries);
return AVERROR_INVALIDDATA;
+ }
if (i && distance == sgpd_entries[entries].roll_distance) {
sgpd_entries[entries].count++;
} else {
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]