PR #24547 opened by michaelni
URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24547
Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24547.patch

Fixes: invalid free
Fixes: 6Qd6MOq0EvLi
Found-by: Gabe Sherman (Trail of Bits)



>From 80248b3e22e09dc53aefc29e5a263d411edcb302 Mon Sep 17 00:00:00 2001
From: Gabe Sherman <[email protected]>
Date: Wed, 16 Sep 2026 06:34:19 +0200
Subject: [PATCH] avformat/pdvenc: add the AVClass pointer to PDVMuxContext

Fixes: invalid free
Fixes: 6Qd6MOq0EvLi
Found-by: Gabe Sherman (Trail of Bits)
---
 libavformat/pdvenc.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavformat/pdvenc.c b/libavformat/pdvenc.c
index 4f70fd3ad8..1c9744457e 100644
--- a/libavformat/pdvenc.c
+++ b/libavformat/pdvenc.c
@@ -32,6 +32,7 @@
 #define PDV_MAX_OFFSET ((1U << 30) - 1)
 
 typedef struct PDVMuxContext {
+    const AVClass *class;
     uint32_t *entries;
     int nb_frames;
     int max_frames;
-- 
2.52.0

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

Reply via email to