Skip to content
Snippets Groups Projects
Commit 6494326a authored by Hui Peng's avatar Hui Peng Committed by Android (Google) Code Review
Browse files

Merge "Fix an OOB bug in btm_ble_process_periodic_adv_sync_lost_evt" into tm-dev

parents f7679c19 85188d00
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