[FFmpeg-devel] [PATCH] avcodec/aacdec_usac: Fix array size

Lynne dev at lynne.ee
Wed Jul 3 03:49:03 EEST 2024


On 02/07/2024 23:25, Marvin Scholz wrote:
> 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
> ---
>   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;
> 
> base-commit: e783e45e29e78616debba7f6d1fe6e54dc336496

Thanks, pushed
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_0xA2FEA5F03F034464.asc
Type: application/pgp-keys
Size: 624 bytes
Desc: OpenPGP public key
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20240703/afc0be06/attachment.key>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature.asc
Type: application/pgp-signature
Size: 236 bytes
Desc: OpenPGP digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20240703/afc0be06/attachment.sig>


More information about the ffmpeg-devel mailing list