• Thomas Schlichter's avatar
    NR_UE: always break out of MAC PDU processing after pdu_len Bytes · 98f8a49f
    Thomas Schlichter authored
    In case of false positive PDSCH CRC check, a random MAC PDU is processed.
    Currently pdu_len is unsigned 16 Bit, so we did break out of the processing loop only if we _exactly_ hit a residual pdu_len of 0, or we hit a LCID of DL_SCH_LCID_PADDING.
    If we didn't hit either of these, pdu_len wrapped to a very positive value, and we continued processing the PDU even beyond its bounds!
    This behavior was observed with SNR 1 dB and MCS 9.
    
    So better make pdu_len signed and break out of the loop after processing at max. pdu_len Bytes!
    98f8a49f
nr_ue_procedures.c 101 KB