This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch release/4.4
in repository ffmpeg.

commit 6b1f7eecdef18156bc6ef035dee5a25d3786e640
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Tue Feb 10 22:46:58 2026 +0100
Commit:     Michael Niedermayer <[email protected]>
CommitDate: Tue May 5 18:55:00 2026 +0200

    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]>
    (cherry picked from commit 4f97e52042bd3e2bc2fbb67bd74fb4216cc7a916)
    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 a33b405f05..5247ca45ca 100644
--- a/libavformat/cafdec.c
+++ b/libavformat/cafdec.c
@@ -236,6 +236,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]

Reply via email to