[FFmpeg-devel] [PATCH 5/5] avformat/mpegts: Initialize predefined_SLConfigDescriptor_seen

Michael Niedermayer michael at niedermayer.cc
Thu Oct 10 03:18:32 EEST 2024


Fixes: use of uninitialized variable
Fixes: 368729566/clusterfuzz-testcase-minimized-ffmpeg_dem_MPEGTS_fuzzer-6044501804646400

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
---
 libavformat/mpegts.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c
index 04565a20110..86b7c8e0414 100644
--- a/libavformat/mpegts.c
+++ b/libavformat/mpegts.c
@@ -1672,6 +1672,8 @@ static int mp4_read_iods(AVFormatContext *s, const uint8_t *buf, unsigned size,
     MP4DescrParseContext d;
     int ret;
 
+    d.predefined_SLConfigDescriptor_seen = 0;
+
     ret = init_MP4DescrParseContext(&d, s, buf, size, descr, max_descr_count);
     if (ret < 0)
         return ret;
-- 
2.47.0



More information about the ffmpeg-devel mailing list