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 c25673fe70 avformat/mpegts: Fix memleak of pes_filter.opaque
c25673fe70 is described below

commit c25673fe70774caacc4e1a017bca9b5a16d33926
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Sat Mar 7 14:28:08 2026 +0100
Commit:     michaelni <[email protected]>
CommitDate: Wed Apr 29 20:50:21 2026 +0000

    avformat/mpegts: Fix memleak of pes_filter.opaque
    
    Fixes: 
490257166/clusterfuzz-testcase-minimized-ffmpeg_dem_MPEGTS_fuzzer-4815675538604032
    
    Found-by: continuous fuzzing process 
https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
    Signed-off-by: Michael Niedermayer <[email protected]>
---
 libavformat/mpegts.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c
index 8eb3bae720..e9945a0081 100644
--- a/libavformat/mpegts.c
+++ b/libavformat/mpegts.c
@@ -583,7 +583,7 @@ static void mpegts_close_filter(MpegTSContext *ts, 
MpegTSFilter *filter)
         av_buffer_unref(&pes->buffer);
         /* referenced private data will be freed later in
          * avformat_close_input (pes->st->priv_data == pes) */
-        if (!pes->st || pes->merged_st) {
+        if (!pes->st || pes->merged_st || !pes->st->priv_data) {
             av_freep(&filter->u.pes_filter.opaque);
         }
     }

_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to