PR #22436 opened by michaelni URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/22436 Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/22436.patch
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]> >From f38cb2eee9feaa3bfef944d8a2014125da4facb5 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer <[email protected]> Date: Sat, 7 Mar 2026 14:28:08 +0100 Subject: [PATCH] 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 a9094ab55b..dfb7e8fcd5 100644 --- a/libavformat/mpegts.c +++ b/libavformat/mpegts.c @@ -571,7 +571,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); } } -- 2.52.0 _______________________________________________ ffmpeg-devel mailing list -- [email protected] To unsubscribe send an email to [email protected]
