diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2024-10-09 23:44:00 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2024-10-25 22:46:40 +0200 |
commit | db7b4fc89fb18d5ff0a1426bd433c234555a3fff (patch) | |
tree | b427f5b648a7ebdc04128baa3dd2952082010b3a | |
parent | 23088a5ff2b549fa4fc037bb9ed833fffbc89ca0 (diff) | |
download | ffmpeg-db7b4fc89fb18d5ff0a1426bd433c234555a3fff.tar.gz |
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@niedermayer.cc>
-rw-r--r-- | libavformat/mpegts.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c index 81481f6f76..78ab7f7efe 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; |