From 507d06b8706f343b0b71782ceff40e11246399a7 Mon Sep 17 00:00:00 2001 From: "matthias.ringwald@gmail.com" Date: Fri, 30 Jan 2015 09:15:30 +0000 Subject: [PATCH] avoid var sized automatic variable in le_handle_advertisement_report --- src/hci.c | 2 +- src/hci.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/hci.c b/src/hci.c index 26dec9049..53bbe5c48 100644 --- a/src/hci.c +++ b/src/hci.c @@ -753,10 +753,10 @@ void le_handle_advertisement_report(uint8_t *packet, int size){ int i; log_info("HCI: handle adv report with num reports: %d", num_reports); + uint8_t event[2 + LE_ADVERTISING_DATA_SIZE]; // use upper bound to avoid var size automatic var for (i=0; i