[FFmpeg-cvslog] avcodec/aacdec_usac: Fix array size

Marvin Scholz git at videolan.org
Wed Jul 3 03:48:40 EEST 2024


ffmpeg | branch: master | Marvin Scholz <epirat07 at gmail.com> | Tue Jul  2 23:25:57 2024 +0200| [ac60ad1872f739dab3ce5c9291d0ea90dbf21e94] | committer: Lynne

avcodec/aacdec_usac: Fix array size

The array in ff_aac_usac_mdst_filt_cur that is passed to that has a size
of 7 elements, not 6 and the code in the function accesses the array at
index 6, which would be out of bounds if the size was actually 6.

Fixes: CID1603196

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ac60ad1872f739dab3ce5c9291d0ea90dbf21e94
---

 libavcodec/aac/aacdec_usac.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/aac/aacdec_usac.c b/libavcodec/aac/aacdec_usac.c
index 4856c1786b..32b3c534bf 100644
--- a/libavcodec/aac/aacdec_usac.c
+++ b/libavcodec/aac/aacdec_usac.c
@@ -1134,7 +1134,7 @@ static void complex_stereo_downmix_cur(AACDecContext *ac, ChannelElement *cpe,
     }
 }
 
-static void complex_stereo_interpolate_imag(float *im, float *re, const float f[6],
+static void complex_stereo_interpolate_imag(float *im, float *re, const float f[7],
                                             int len, int factor_even, int factor_odd)
 {
     int i = 0;



More information about the ffmpeg-cvslog mailing list