fix ubsan detected errors
This commit is contained in:
@@ -87,7 +87,7 @@ typedef struct {
|
||||
// N_CCE is L, or number of CCEs for DCI
|
||||
int N_CCE;
|
||||
uint8_t payloadSize;
|
||||
uint8_t payloadBits[16];
|
||||
uint8_t payloadBits[16] __attribute__((aligned(16))); // will be cast as uint64
|
||||
//fapi_nr_dci_pdu_rel15_t dci;
|
||||
} fapi_nr_dci_indication_pdu_t;
|
||||
|
||||
|
||||
@@ -738,7 +738,7 @@ typedef struct {
|
||||
// The total DCI length (in bits) including padding bits [TS38.212 sec 7.3.1] Range 0->DCI_PAYLOAD_BYTE_LEN*8
|
||||
uint16_t PayloadSizeBits;
|
||||
// DCI payload, where the actual size is defined by PayloadSizeBits. The bit order is as following bit0-bit7 are mapped to first byte of MSB - LSB
|
||||
uint8_t Payload[DCI_PAYLOAD_BYTE_LEN];
|
||||
uint8_t Payload[DCI_PAYLOAD_BYTE_LEN] __attribute__((aligned(32)));
|
||||
|
||||
} nfapi_nr_dl_dci_pdu_t;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user