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

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

parents 1ee290b8 4b008a2a
No related branches found
No related tags found
No related merge requests found
......@@ -340,6 +340,11 @@ void btm_acl_process_sca_cmpl_pkt(uint8_t len, uint8_t* data) {
uint8_t sca;
uint8_t status;
if (len < 4) {
LOG_WARN("Malformatted packet, not containing enough data");
return;
}
STREAM_TO_UINT8(status, data);
if (status != HCI_SUCCESS) {
......
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