Avoid array buffer overflow in ue_pmch_procedures()
Adapt as code above offending line to not overflow array. Avoids UBSan
error
openair1/SCHED_UE/phy_procedures_lte_ue.c:2983:36: runtime error: index 8 out of bounds for type 'int [8][1]'
This commit is contained in:
committed by
Laurent THOMAS
parent
76860fd44b
commit
6b32dd6e8e
@@ -2980,7 +2980,7 @@ void ue_pmch_procedures(PHY_VARS_UE *ue,
|
||||
ue->dlsch_mch_received_sf[subframe_rx%5][0]=0;
|
||||
} else {
|
||||
ue->dlsch_mch_received[0]+=1;
|
||||
ue->dlsch_mch_received_sf[subframe_rx][0]=1;
|
||||
ue->dlsch_mch_received_sf[subframe_rx % 5][0] = 1;
|
||||
}
|
||||
} // decoding sucessful
|
||||
} // pmch_mcs>=0
|
||||
|
||||
Reference in New Issue
Block a user