File ffmpeg-4-CVE-2025-25473.patch of Package ffmpeg-4
27
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
--- a/libavformat/utils.c
18
+++ b/libavformat/utils.c
19
20
av_dict_free(&s->internal->id3v2_meta);
21
av_packet_free(&s->internal->pkt);
22
av_packet_free(&s->internal->parse_pkt);
23
+ avpriv_packet_list_free(&s->internal->packet_buffer, &s->internal->packet_buffer_end);
24
av_freep(&s->streams);
25
flush_packet_queue(s);
26
av_freep(&s->internal);
27