[FFmpeg-cvslog] avformat/mpegts: Initialize predefined_SLConfigDescriptor_seen

Michael Niedermayer git at videolan.org
Sun Jan 5 01:30:00 EET 2025


ffmpeg | branch: release/2.8 | Michael Niedermayer <michael at niedermayer.cc> | Wed Oct  9 23:44:00 2024 +0200| [e871c7a004a7929d6e5b10d174412f2741c73126] | committer: Michael Niedermayer

avformat/mpegts: Initialize predefined_SLConfigDescriptor_seen

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>
(cherry picked from commit db7b4fc89fb18d5ff0a1426bd433c234555a3fff)
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e871c7a004a7929d6e5b10d174412f2741c73126
---

 libavformat/mpegts.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c
index a1929cef13..db88ee9fb6 100644
--- a/libavformat/mpegts.c
+++ b/libavformat/mpegts.c
@@ -1463,6 +1463,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;



More information about the ffmpeg-cvslog mailing list