This is an automated email from the git hooks/post-receive script.
Git pushed a commit to branch master
in repository ffmpeg.
The following commit(s) were added to refs/heads/master by this push:
new 989d6ddea0 avformat/wtvdec: Check that language is fully read
989d6ddea0 is described below
commit 989d6ddea0da4c779e6b81998779344ada773824
Author: Michael Niedermayer <[email protected]>
AuthorDate: Sun Feb 22 13:47:23 2026 +0100
Commit: michaelni <[email protected]>
CommitDate: Tue Feb 24 10:22:37 2026 +0000
avformat/wtvdec: Check that language is fully read
Fixes: use-of-uninitialized-value
Fixes:
483856523/clusterfuzz-testcase-minimized-ffmpeg_dem_WTV_fuzzer-5221422609006592
Found-by: continuous fuzzing process
https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <[email protected]>
---
libavformat/wtvdec.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libavformat/wtvdec.c b/libavformat/wtvdec.c
index 1f299510c9..50d019a03f 100644
--- a/libavformat/wtvdec.c
+++ b/libavformat/wtvdec.c
@@ -881,7 +881,8 @@ static int parse_chunks(AVFormatContext *s, int mode,
int64_t seekts, int *len_p
AVStream *st = s->streams[stream_index];
uint8_t language[4];
avio_skip(pb, 12);
- avio_read(pb, language, 3);
+ if (avio_read(pb, language, 3) != 3)
+ return AVERROR_INVALIDDATA;
if (language[0]) {
language[3] = 0;
av_dict_set(&st->metadata, "language", language, 0);
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]