Fix for Undefined-shift in ixheaacd_windowing_short2
These changes handle the Undefined-shift runtime error reported because the value of shift was coming greater than 31. Bug: ossFuzz:61678 Test: poc in bug
This commit is contained in:
parent
b32c803df9
commit
bbb4630478
1 changed files with 3 additions and 0 deletions
|
|
@ -392,6 +392,9 @@ static IA_ERRORCODE ixheaacd_fd_imdct_short(ia_usac_data_struct *usac_data,
|
|||
ixheaacd_normalize(p_in_ibuffer, max_shift - 1, ixheaacd_drc_offset->n_long);
|
||||
shiftp += max_shift - 1;
|
||||
|
||||
if ((shiftp - shift_olap) > 31) {
|
||||
shiftp = 31 + shift_olap;
|
||||
}
|
||||
err_code = ixheaacd_calc_window(&window_short, ixheaacd_drc_offset->n_short,
|
||||
window_select, usac_data->ec_flag);
|
||||
if (err_code == -1) return err_code;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue