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 4f97e52042 avformat/cafdec: Check nb_entries in read_info_chunk()
4f97e52042 is described below
commit 4f97e52042bd3e2bc2fbb67bd74fb4216cc7a916
Author: Michael Niedermayer <[email protected]>
AuthorDate: Tue Feb 10 22:46:58 2026 +0100
Commit: michaelni <[email protected]>
CommitDate: Wed Feb 11 01:17:30 2026 +0000
avformat/cafdec: Check nb_entries in read_info_chunk()
Fixes: Timeout
Fixes:
477315122/clusterfuzz-testcase-minimized-ffmpeg_dem_CAF_fuzzer-5274792315125760
Found-by: continuous fuzzing process
https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <[email protected]>
---
libavformat/cafdec.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/libavformat/cafdec.c b/libavformat/cafdec.c
index 656b473140..1557391ef3 100644
--- a/libavformat/cafdec.c
+++ b/libavformat/cafdec.c
@@ -326,6 +326,10 @@ static void read_info_chunk(AVFormatContext *s, int64_t
size)
AVIOContext *pb = s->pb;
unsigned int i;
unsigned int nb_entries = avio_rb32(pb);
+
+ if (3LL * nb_entries > size)
+ return;
+
for (i = 0; i < nb_entries && !avio_feof(pb); i++) {
char key[32];
char value[1024];
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]