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

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

commit 79b1d1e1aaa8fc29d6780a9b5d9cec8d53532cd1
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Sun May 31 16:44:12 2026 +0200
Commit:     Michael Niedermayer <[email protected]>
CommitDate: Mon Jun 15 23:57:22 2026 +0200

    avcodec/sanm: reject codec47 frames taller than the allocated buffer
    
    Fixes: 
513469519/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_SANM_fuzzer-5024854725427200
    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 b2695bcbb3f4c75ec5db9bc97f57af0521d6c05a)
    Signed-off-by: Michael Niedermayer <[email protected]>
---
 libavcodec/sanm.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/libavcodec/sanm.c b/libavcodec/sanm.c
index fc07ec659c..ebcd9d35fa 100644
--- a/libavcodec/sanm.c
+++ b/libavcodec/sanm.c
@@ -1551,6 +1551,9 @@ static int old_codec47(SANMVideoContext *ctx, 
GetByteContext *gb, int top, int l
     if (width > ctx->aligned_width)
         return AVERROR_INVALIDDATA;
 
+    if (FFALIGN(height, 8) > ctx->aligned_height)
+        return AVERROR_INVALIDDATA;
+
     if (bytestream2_get_bytes_left(gb) < 26)
          return AVERROR_INVALIDDATA;
 

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

Reply via email to