mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-06-05 21:04:49 +00:00
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:
committed by
Szymon Janc
parent
53bae66f71
commit
89e7090c59
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user