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

Git pushed a commit to branch master
in repository ffmpeg.

commit 61362812fd2ad9c76a96334c89ff99d1d35f58df
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Wed Nov 11 18:40:21 2026 +0100
Commit:     michaelni <[email protected]>
CommitDate: Sun Nov 15 20:27:15 2026 +0000

    avformat/mpegts: free a PESContext with its filter unless the stream owns it
    
    Fixes: double free
    Fixes: fHugfEQx8Ec0
    Fixes: ffmpeg-n902-pmt-move-retype-20261027.ts
    Double free Replicated through UnModified FFmpeg with ASAN
    
    Found-by: Min Kang
---
 libavformat/mpegts.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c
index c200fb4f45..bffa78a701 100644
--- a/libavformat/mpegts.c
+++ b/libavformat/mpegts.c
@@ -633,7 +633,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 || !pes->st->priv_data) {
+        if (!pes->st || pes->st->priv_data != pes) {
             av_freep(&filter->u.pes_filter.opaque);
         }
     }

-- 
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