Skip to content

Commit bd6a8bb

Browse files
Shashank Pathmudidivya-bm
authored andcommitted
Fix for integer-overflow in ixheaacd_map_index_data
Significance: ============ This change addresses a corner case arithmetic operation involving addition. Bug: ossFuzz: 486993297 Test: poc in bug
1 parent 9973bb5 commit bd6a8bb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

decoder/ixheaacd_mps_bitdec.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1448,8 +1448,8 @@ static VOID ixheaacd_factor_cld(WORD32 *idx, WORD32 ott_vs_tot_db, WORD32 *ott_v
14481448
c1 = ixheaacd_mps_dec_bitdec_tables->factor_cld_tab_1[*idx + 15];
14491449
c2 = ixheaacd_mps_dec_bitdec_tables->factor_cld_tab_1[15 - *idx];
14501450

1451-
*ott_vs_tot_db_1 = c1 + ott_vs_tot_db;
1452-
*ott_vs_tot_db_2 = c2 + ott_vs_tot_db;
1451+
*ott_vs_tot_db_1 = ixheaac_add32_sat(c1, ott_vs_tot_db);
1452+
*ott_vs_tot_db_2 = ixheaac_add32_sat(c2, ott_vs_tot_db);
14531453
}
14541454

14551455
static IA_ERRORCODE ixheaacd_map_index_data(

0 commit comments

Comments
 (0)