controller/ble_ll_sync.c: acad_len potentially uninitialised

acad_len in ble_ll_sync_rx_pkt_in is filled in ble_ll_sync_parse_ext_hdr
and later accessed in ble_ll_sync_check_acad. There is a possibility
that extended advertising header is missing data containing acad, and it
will not get filled, leaving it uninitialised.
This commit is contained in:
Krzysztof Kopyściński
2024-03-27 08:46:43 +01:00
committed by Szymon Janc
parent 53bae66f71
commit 89e7090c59
+1 -1
View File
@@ -1136,7 +1136,7 @@ ble_ll_sync_rx_pkt_in(struct os_mbuf *rxpdu, struct ble_mbuf_hdr *hdr)
int8_t tx_power = 127; /* defaults to not available */
uint8_t *aux = NULL;
uint8_t *acad = NULL;
uint8_t acad_len;
uint8_t acad_len = 0;
const uint8_t *biginfo = NULL;
uint8_t biginfo_len = 0;
int datalen;