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

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

commit 9827f005a83bc22c6fc5b396e1beb36ce69670cb
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Mon Nov 16 06:56:38 2026 +0100
Commit:     Michael Niedermayer <[email protected]>
CommitDate: Thu Nov 19 14:55:53 2026 +0100

    avcodec/sanm: add the FTCH offsets without signed overflow
    
    Signed integer overflow Replicated through API with UBSAN
    
    Fixes: signed integer overflow: -1 + -2147483648 cannot be represented in 
type 'int'
    Fixes: 
575276971/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_SANM_fuzzer-6288493593296896
    Fixes: 04GaICgAPs9q
    Regression since: b418da28bf3fcd9a80383b0f39e3cd71e55022c1
    
    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 1d06a0103eb5a2da96cf5a2f8c75e2b9e69998cf)
    Signed-off-by: Michael Niedermayer <[email protected]>
---
 libavcodec/sanm.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavcodec/sanm.c b/libavcodec/sanm.c
index 041466b210..396dce8c35 100644
--- a/libavcodec/sanm.c
+++ b/libavcodec/sanm.c
@@ -2124,8 +2124,8 @@ static int process_frame_obj(SANMVideoContext *ctx, 
GetByteContext *gb,
             memset(ctx->fbuf, 0, ctx->frm0_size);
     }
 
-    left += xoff;
-    top += yoff;
+    left += (unsigned)xoff;
+    top += (unsigned)yoff;
 
     switch (codec) {
     case 1:

-- 
To stop receiving notification emails like this one, please contact
[email protected].
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to