Commit 1354086e authored by Raymond Knopp's avatar Raymond Knopp

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
parent a319ef7e
...@@ -213,10 +213,7 @@ init_SI_UE( ...@@ -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].sib1[eNB_index] = (SystemInformationBlockType1_t*)malloc16(sizeof(SystemInformationBlockType1_t));
UE_rrc_inst[ctxt_pP->module_id].SI[eNB_index] = (uint8_t*)malloc16(64); 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] for (i=0; i<8; i++) {
// 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++) {
UE_rrc_inst[ctxt_pP->module_id].si[eNB_index][i] = (SystemInformation_t*)malloc16(sizeof(SystemInformation_t)); UE_rrc_inst[ctxt_pP->module_id].si[eNB_index][i] = (SystemInformation_t*)malloc16(sizeof(SystemInformation_t));
} }
......
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