mirror of
https://github.com/ittiam-systems/libxaac.git
synced 2026-04-02 20:30:47 +07:00
Fix overflows in ixheaacd_scale_adjust (#126)
Some checks failed
CMake / build (push) Has been cancelled
Some checks failed
CMake / build (push) Has been cancelled
Significance: ============ - Handles overflows in ixheaacd_scale_adjust. Testing: ============ - All previous fuzzer crashes are tested. No crash observed. - Conformance passing on Windows Co-authored-by: Shashank Pathmudi <100897@ittiam.com>
This commit is contained in:
parent
bd6a8bbbfb
commit
cb284e5485
1 changed files with 1 additions and 2 deletions
|
|
@ -327,8 +327,7 @@ VOID ixheaacd_scale_adjust(WORD32 *samples, UWORD32 frame_len,
|
|||
WORD32 j;
|
||||
for (i = 0; i < frame_len; i++) {
|
||||
for (j = 0; j < num_channels; j++) {
|
||||
WORD32 gain_t = (WORD32)(1 << *(qshift_adj + j));
|
||||
samples[i * num_channels + j] = (samples[i * num_channels + j] * gain_t);
|
||||
samples[i * num_channels + j] = ixheaac_shl32_sat(samples[i * num_channels + j], qshift_adj[j]);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue