Commit 5fbea5ca authored by Dong Anyuan's avatar Dong Anyuan

Fix Coverity Scan CID 261489 (Overrunning array cc->mbsfn_SubframeConfig of 8...

Fix Coverity Scan CID 261489 (Overrunning array cc->mbsfn_SubframeConfig of 8 8-byte elements at element index 65535 (byte offset 524280) using index j (which evaluates to 65535).)
parent 00c10b77
...@@ -65,7 +65,7 @@ get_mbsfn_sf_alloction(module_id_t module_idP, uint8_t CC_id, ...@@ -65,7 +65,7 @@ get_mbsfn_sf_alloction(module_id_t module_idP, uint8_t CC_id,
uint8_t mbsfn_sync_area) uint8_t mbsfn_sync_area)
{ {
// currently there is one-to-one mapping between sf allocation pattern and sync area // currently there is one-to-one mapping between sf allocation pattern and sync area
if (mbsfn_sync_area > MAX_MBSFN_AREA) { if (mbsfn_sync_area >= MAX_MBSFN_AREA) {
LOG_W(MAC, LOG_W(MAC,
"[eNB %d] CC_id %d MBSFN synchronization area %d out of range\n ", "[eNB %d] CC_id %d MBSFN synchronization area %d out of range\n ",
module_idP, CC_id, mbsfn_sync_area); module_idP, CC_id, mbsfn_sync_area);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment