diff options
author | Akshay Ragir <akshay.ragir@ittiam.com> | 2023-11-27 14:03:47 +0530 |
---|---|---|
committer | Divya B M <89966460+divya-bm@users.noreply.github.com> | 2023-11-27 20:00:46 +0530 |
commit | 86eb72d8eb5c8c2cc0a667a8646068d11e0bbae3 (patch) | |
tree | 7441be07838aae33ca5eed7e8ed9824ee942bcdb /encoder/ixheaace_api.c | |
parent | cc7ce80ec3b6044b26b851c98a7a10952f0e22f8 (diff) | |
download | libxaac-86eb72d8eb5c8c2cc0a667a8646068d11e0bbae3.tar.gz |
Fix for the Global-buffer-overflow READ 4 in iaace_estimate_scfs_chan
These changes handle the 960 frame length
support for SBR and PS profiles.
Bug: ossFuzz: 64532
Test: poc in bug
Diffstat (limited to 'encoder/ixheaace_api.c')
-rw-r--r-- | encoder/ixheaace_api.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/encoder/ixheaace_api.c b/encoder/ixheaace_api.c index fee5c9e..bd4c3f3 100644 --- a/encoder/ixheaace_api.c +++ b/encoder/ixheaace_api.c @@ -785,6 +785,10 @@ static VOID ixheaace_validate_config_params(ixheaace_input_config *pstr_input_co pstr_input_config->frame_length = LEN_SUPERFRAME; } } + if ((pstr_input_config->frame_length == FRAME_LEN_960) && + (pstr_input_config->esbr_flag == 1)) { + pstr_input_config->esbr_flag = 0; + } } } |