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 76dddbc961d389b18774cd832ce43536d80aa0fb
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Sat May 2 12:53:36 2026 +0200
Commit:     Michael Niedermayer <[email protected]>
CommitDate: Sun May 3 19:24:59 2026 +0200

    avcodec/adpcm: signed integer overflow in ADPCM_N64
    
    Fixes: signed integer overflow
    
    Found-by: Marius Momeu <[email protected]>
    Signed-off-by: Michael Niedermayer <[email protected]>
    (cherry picked from commit b45a6d3f76f11df8adaf167b291102b899f125f8)
    Signed-off-by: Michael Niedermayer <[email protected]>
---
 libavcodec/adpcm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/adpcm.c b/libavcodec/adpcm.c
index 18bdc43b76..e06aa7606b 100644
--- a/libavcodec/adpcm.c
+++ b/libavcodec/adpcm.c
@@ -2704,7 +2704,7 @@ static int adpcm_decode_frame(AVCodecContext *avctx, 
AVFrame *frame,
 
                     for (int k = i-1; k > -1; k--) {
                         for (int o = 1; o < order; o++)
-                            delta += sf_codes[(i-1) - k] * coefs[(o*8) + k];
+                            delta += sf_codes[(i-1) - k] * 
(unsigned)coefs[(o*8) + k];
                     }
 
                     sample = sf_codes[i] * 2048;

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

Reply via email to