File ffmpeg-6-CVE-2025-25473.patch of Package A_slowroll-ffmpeg-6
32
1
From c08d300481b8ebb846cd43a473988fdbc6793d1b Mon Sep 17 00:00:00 2001
2
From: James Almer <jamrial@gmail.com>
3
Date: Fri, 17 Jan 2025 00:05:31 -0300
4
Subject: [PATCH] avformat/avformat: also clear FFFormatContext packet queue
5
when closing a muxer
6
7
packet_buffer is used in mux.c, and if a muxing process fails at a point where
8
packets remained in said queue, they will leak.
9
10
Fixes ticket #11419
11
12
Signed-off-by: James Almer <jamrial@gmail.com>
13
---
14
libavformat/avformat.c | 1 +
15
1 file changed, 1 insertion(+)
16
17
diff --git a/libavformat/avformat.c b/libavformat/avformat.c
18
index eb9afad837..3801ef5d58 100644
19
--- a/libavformat/avformat.c
20
+++ b/libavformat/avformat.c
21
22
av_dict_free(&si->id3v2_meta);
23
av_packet_free(&si->pkt);
24
av_packet_free(&si->parse_pkt);
25
+ avpriv_packet_list_free(&si->packet_buffer);
26
av_freep(&s->streams);
27
ff_flush_packet_queue(s);
28
av_freep(&s->url);
29
--
30
2.41.0
31
32