Fix Coverity Scan CID 339892 (Overrunning array msg_p->ittiMsg.rrc_mac_ccch_data_ind.sdu of 512 bytes by passing it to a function which accesses it at byte offset 1022 using argument msg_p->ittiMsg.rrc_mac_ccch_data_ind.sdu_size (which evaluates to 1023).)
This commit is contained in:
@@ -7736,9 +7736,9 @@ void *rrc_enb_process_itti_msg(void *notUsed) {
|
|||||||
&ctxt,
|
&ctxt,
|
||||||
RRC_MAC_CCCH_DATA_IND(msg_p).sdu_size);
|
RRC_MAC_CCCH_DATA_IND(msg_p).sdu_size);
|
||||||
|
|
||||||
if (RRC_MAC_CCCH_DATA_IND(msg_p).sdu_size >= RRC_BUFFER_SIZE_MAX) {
|
if (RRC_MAC_CCCH_DATA_IND(msg_p).sdu_size >= CCCH_SDU_SIZE) {
|
||||||
LOG_I(RRC, "CCCH message has size %d > %d\n",
|
LOG_I(RRC, "CCCH message has size %d > %d\n",
|
||||||
RRC_MAC_CCCH_DATA_IND(msg_p).sdu_size,RRC_BUFFER_SIZE_MAX);
|
RRC_MAC_CCCH_DATA_IND(msg_p).sdu_size,CCCH_SDU_SIZE);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user