This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch release/7.1
in repository ffmpeg.

The following commit(s) were added to refs/heads/release/7.1 by this push:
     new e85ede4d29 avformat/mov: don't leak on realloc failure
e85ede4d29 is described below

commit e85ede4d29ed4003821583962a730b62410f55f0
Author:     Timo Rothenpieler <[email protected]>
AuthorDate: Fri Sep 25 23:24:30 2026 +0200
Commit:     ffmpeg-devel <[email protected]>
CommitDate: Sat Sep 26 16:04:46 2026 +0000

    avformat/mov: don't leak on realloc failure
    
    Fixes: #YWH-PGM40646-48
    (cherry picked from commit d97584959417519597a24c8fdd13dc4b9af1a876)
---
 libavformat/mov.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/libavformat/mov.c b/libavformat/mov.c
index 90cc8b523b..ebd11786c7 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -4361,9 +4361,8 @@ static void mov_fix_index(MOVContext *mov, AVStream *st)
 
                     if (edit_list_start_encountered == 0) {
                         num_discarded_begin++;
-                        frame_duration_buffer = 
av_realloc(frame_duration_buffer,
-                                                           num_discarded_begin 
* sizeof(int64_t));
-                        if (!frame_duration_buffer) {
+                        if (av_reallocp_array(&frame_duration_buffer, 
num_discarded_begin,
+                                              sizeof(*frame_duration_buffer)) 
< 0) {
                             av_log(mov->fc, AV_LOG_ERROR, "Cannot reallocate 
frame duration buffer\n");
                             break;
                         }

-- 
To stop receiving notification emails like this one, please contact
[email protected].
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to