From 1354086ee0a36074185a93718ec310fb8d2214d0 Mon Sep 17 00:00:00 2001
From: Raymond Knopp <raymond.knopp@eurecom.fr>
Date: Thu, 16 Apr 2015 13:41:03 +0000
Subject: [PATCH] fixed loop in init_SI_UE for SI window memory allocation

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@7180 818b1a75-f10b-46b9-bf7c-635c3b92a50f
---
 openair2/RRC/LITE/rrc_UE.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/openair2/RRC/LITE/rrc_UE.c b/openair2/RRC/LITE/rrc_UE.c
index 2ef5ab4e5e..2456b62e3e 100644
--- a/openair2/RRC/LITE/rrc_UE.c
+++ b/openair2/RRC/LITE/rrc_UE.c
@@ -213,10 +213,7 @@ init_SI_UE(
   UE_rrc_inst[ctxt_pP->module_id].sib1[eNB_index] = (SystemInformationBlockType1_t*)malloc16(sizeof(SystemInformationBlockType1_t));
   UE_rrc_inst[ctxt_pP->module_id].SI[eNB_index] = (uint8_t*)malloc16(64);
 
-  // FIXME the structure member si is defined as si[NB_CNX_UE][8]
-  // FIXME the code at rrc_UE.c:2250 indexes si like this: UE_rrc_inst[ctxt_pP->module_id].si[eNB_index][si_window]
-  // FIXME for si_window = 2 (which can happen) this produces a SIGSEGV
-  for (i=0; i<NB_CNX_UE; i++) {
+  for (i=0; i<8; i++) {
     UE_rrc_inst[ctxt_pP->module_id].si[eNB_index][i] = (SystemInformation_t*)malloc16(sizeof(SystemInformation_t));
   }
 
-- 
GitLab