Skip to content

Commit 86472d7

Browse files
committed
Cordio BLE: ignore messages with overlong headers
1 parent cda8a9d commit 86472d7

File tree

1 file changed

+1
-1
lines changed
  • connectivity/FEATURE_BLE/libraries/cordio_stack/ble-host/sources/hci/dual_chip

1 file changed

+1
-1
lines changed

connectivity/FEATURE_BLE/libraries/cordio_stack/ble-host/sources/hci/dual_chip/hci_evt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3022,7 +3022,7 @@ void hciEvtProcessMsg(uint8_t *pEvt)
30223022
pMsg->hdr.status = HCI_SUCCESS;
30233023

30243024
/* execute parsing function for the event */
3025-
(*hciEvtParseFcnTbl[cbackEvt])(pMsg, pEvt, len);
3025+
(*hciEvtParseFcnTbl[cbackEvt])(pMsg, pEvt, WSF_MIN(hciEvtCbackLen[cbackEvt] - sizeof(wsfMsgHdr_t), len));
30263026

30273027
/* execute callback */
30283028
(*cback)(pMsg);

0 commit comments

Comments
 (0)