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

Git pushed a commit to branch master
in repository ffmpeg.

commit 561130d30b2a71aa36095366382272b2595fe919
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Sat Oct 10 04:50:51 2026 +0200
Commit:     michaelni <[email protected]>
CommitDate: Mon Oct 12 23:55:55 2026 +0000

    avcodec/aac/aacdec_usac_mps212: avoid shifting a negative IPD index
    
    Undefined shift Replicated through API with UBSAN
    
    Fixes: left shift of negative value -1
    Fixes: 
536321788/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_AAC_DEC_fuzzer-4601480396210176
    Fixes: IsFvv6HEhVCP
    
    Found-by: continuous fuzzing process 
https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
    Signed-off-by: Michael Niedermayer <[email protected]>
---
 libavcodec/aac/aacdec_usac_mps212.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/aac/aacdec_usac_mps212.c 
b/libavcodec/aac/aacdec_usac_mps212.c
index eec7943bb8..a003d0544c 100644
--- a/libavcodec/aac/aacdec_usac_mps212.c
+++ b/libavcodec/aac/aacdec_usac_mps212.c
@@ -375,7 +375,7 @@ static void attach_lsb(GetBitContext *gb, int16_t *data_msb,
         int msb = data_msb[i];
         if (nb_lsb > 0) {
             uint32_t lsb = get_bits(gb, nb_lsb);
-            data[i] = ((msb << nb_lsb) | lsb) - offset;
+            data[i] = ((msb * (1 << nb_lsb)) | lsb) - offset;
         } else {
             data[i] = msb - offset;
         }

-- 
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