Skip to content
Snippets Groups Projects
Commit 6d0884df authored by Hui Peng's avatar Hui Peng
Browse files

Fix an OOB bug in btm_ble_process_periodic_adv_sync_lost_evt

Bug: 255305114
Test: manual
Tag: #security
Ignore-AOSP-First: security
Change-Id: I7b7f071017a6c04f6bee901f7151e4f5df0a0c64
parent a448105b
No related branches found
No related tags found
No related merge requests found
......@@ -418,6 +418,11 @@ void btm_ble_process_periodic_adv_sync_lost_evt(uint8_t data_len,
uint8_t* data) {
uint16_t sync_handle;
if (data_len < 2) {
LOG(ERROR) << "Bogus event packet, too short";
return;
}
STREAM_TO_UINT16(sync_handle, data);
if (BleScannerHciInterface::Get()) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment