This is an automated email from the ASF dual-hosted git repository.
janc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git
The following commit(s) were added to refs/heads/master by this push:
new 605c75854 nimble/host: Fix parsing HCI advertising report event
605c75854 is described below
commit 605c7585408bc3674818eeb7b6f478a8aefe9746
Author: Szymon Janc <[email protected]>
AuthorDate: Wed Mar 18 13:05:30 2026 +0100
nimble/host: Fix parsing HCI advertising report event
If event contains more than one report subsecquent reports would
contain invalid data.
---
nimble/host/src/ble_hs_hci_evt.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/nimble/host/src/ble_hs_hci_evt.c b/nimble/host/src/ble_hs_hci_evt.c
index 8526d8caf..901c2362d 100644
--- a/nimble/host/src/ble_hs_hci_evt.c
+++ b/nimble/host/src/ble_hs_hci_evt.c
@@ -523,7 +523,7 @@ ble_hs_hci_evt_le_adv_rpt(uint8_t subevent, const void
*data, unsigned int len)
for (i = 0; i < ev->num_reports; i++) {
rpt = data;
- data += sizeof(rpt) + rpt->data_len + 1;
+ data += sizeof(*rpt) + rpt->data_len + 1;
desc.event_type = rpt->type;
desc.addr.type = rpt->addr_type;