We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a1cf72 commit b5fc368Copy full SHA for b5fc368
src/utility/HCI.cpp
@@ -1116,6 +1116,10 @@ void HCIClass::handleEventPkt(uint8_t /*plen*/, uint8_t pdata[])
1116
uint8_t eirData[31];
1117
} *leAdvertisingReport = (EvtLeAdvertisingReport*)&pdata[sizeof(HCIEventHdr) + sizeof(LeMetaEventHeader)];
1118
1119
+ if(leAdvertisingReport->eirLength > sizeof(leAdvertisingReport->eirData)){
1120
+ return ;
1121
+ }
1122
+
1123
if (leAdvertisingReport->status == 0x01) {
1124
// last byte is RSSI
1125
int8_t rssi = leAdvertisingReport->eirData[leAdvertisingReport->eirLength];
0 commit comments