Commit d74e9db1 authored by Ding Yumei's avatar Ding Yumei

fix segmentation fault(ul dtch length error)

parent 3b192068
......@@ -988,8 +988,13 @@ rx_sdu(const module_id_t enb_mod_idP,
break;
}
payload_ptr += rx_lengths[i];
if((sdu_lenP - (payload_ptr - sduP)) >= rx_lengths[i]){
payload_ptr += rx_lengths[i];
}else{
LOG_E(MAC,"[eNB %d/%d] frame %d subframe %d rnti %x sdu_len %d remain_len %d rx_lengths %d\n",
enb_mod_idP,CC_idP,frameP,subframeP,rntiP,sdu_lenP,(uint16_t)(payload_ptr - sduP), rx_lengths[i]);
return;
}
}
/* CDRX UL HARQ timers */
......
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