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 107603e8d3847b17982f09f394769bd0a52f3b25
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Tue Aug 6 18:18:15 2024 +0200
Commit:     Michael Niedermayer <[email protected]>
CommitDate: Sun Jun 21 17:59:33 2026 +0200

    avformat/av1dec: Check bits left before get_leb128()
    
    Fixes: use of uninitialized value
    Fixes: 
70872/clusterfuzz-testcase-minimized-ffmpeg_dem_OBU_fuzzer-6005782487826432
    
    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 6996e1238e80b23caf05428dcbdd065fbd70ff10)
    Signed-off-by: Michael Niedermayer <[email protected]>
---
 libavformat/av1dec.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/libavformat/av1dec.c b/libavformat/av1dec.c
index 5ae81b34d4..aaba22a0a4 100644
--- a/libavformat/av1dec.c
+++ b/libavformat/av1dec.c
@@ -331,6 +331,9 @@ static int read_obu_with_size(const uint8_t *buf, int 
buf_size, int64_t *obu_siz
         skip_bits(&gb, 3);  // extension_header_reserved_3bits
     }
 
+    if (get_bits_left(&gb) < 8)
+        return AVERROR_INVALIDDATA;
+
     *obu_size  = leb128(&gb);
     if (*obu_size > INT_MAX)
         return AVERROR_INVALIDDATA;

_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to