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

Git pushed a commit to branch master
in repository ffmpeg.

commit c2364e92229ac33b07ae5158f51f4a08fdb0288c
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Thu Mar 5 16:22:25 2026 +0100
Commit:     michaelni <[email protected]>
CommitDate: Sat Mar 7 11:11:52 2026 +0000

    avcodec/aac/aacdec_usac_mps212: Fix invalid array index
    
    Without the specification, limiting the index is the best that can be done.
    
    Fixes: out of array access
    Fixes: 
487591441/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_AAC_LATM_fuzzer-6205915698364416
    
    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 | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/libavcodec/aac/aacdec_usac_mps212.c 
b/libavcodec/aac/aacdec_usac_mps212.c
index e73665022c..43b4930e1a 100644
--- a/libavcodec/aac/aacdec_usac_mps212.c
+++ b/libavcodec/aac/aacdec_usac_mps212.c
@@ -584,6 +584,9 @@ static int get_freq_strides(int16_t *freq_strides, int 
band_stride,
         }
     }
 
+    for (int i = 0; i <= data_bands; i++)
+        freq_strides[i] = av_clip_uintp2(freq_strides[i], 2);
+
     return data_bands;
 }
 

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

Reply via email to