Commit fdbb6164 authored by Michael Niedermayer's avatar Michael Niedermayer

sbr: increase f_tablelim size, it appears it was too small by 1.

Prevent out of array accesses.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent b0d83e0d
...@@ -153,7 +153,7 @@ typedef struct SpectralBandReplication { ...@@ -153,7 +153,7 @@ typedef struct SpectralBandReplication {
///Frequency borders for noise floors ///Frequency borders for noise floors
uint16_t f_tablenoise[6]; uint16_t f_tablenoise[6];
///Frequency borders for the limiter ///Frequency borders for the limiter
uint16_t f_tablelim[29]; uint16_t f_tablelim[30];
unsigned num_patches; unsigned num_patches;
uint8_t patch_num_subbands[6]; uint8_t patch_num_subbands[6];
uint8_t patch_start_subband[6]; uint8_t patch_start_subband[6];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment