Skip to content

Commit 55af74f

Browse files
Shashank Pathmudidivya-bm
authored andcommitted
Fix for integer overflow issue in ixheaacd_apply_ana_hyb_filt_bank_create_x_res
Significance: ============= This change addresses a corner case arithmetic operations involving addition. Bug: ossFuzz: 477312356 Test: poc in bug
1 parent f1d0152 commit 55af74f

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

decoder/ixheaacd_mps_hybrid_filt.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1164,13 +1164,13 @@ VOID ixheaacd_apply_ana_hyb_filt_bank_create_x_res(
11641164
*p_hybrid_im++ = m_temp_output_imag[1];
11651165

11661166
if (*counter > 4) {
1167-
*p_hybrid_re++ = (m_temp_output_real[2] + m_temp_output_real[5]);
1168-
*p_hybrid_im++ = (m_temp_output_imag[2] + m_temp_output_imag[5]);
1167+
*p_hybrid_re++ = ixheaac_add32_sat(m_temp_output_real[2], m_temp_output_real[5]);
1168+
*p_hybrid_im++ = ixheaac_add32_sat(m_temp_output_imag[2], m_temp_output_imag[5]);
11691169
}
11701170

11711171
if (*counter > 5) {
1172-
*p_hybrid_re++ = (m_temp_output_real[3] + m_temp_output_real[4]);
1173-
*p_hybrid_im++ = (m_temp_output_imag[3] + m_temp_output_imag[4]);
1172+
*p_hybrid_re++ = ixheaac_add32_sat(m_temp_output_real[3], m_temp_output_real[4]);
1173+
*p_hybrid_im++ = ixheaac_add32_sat(m_temp_output_imag[3], m_temp_output_imag[4]);
11741174
}
11751175

11761176
ch_off_set = 6;

0 commit comments

Comments
 (0)