Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5f333179 authored by Hui Peng's avatar Hui Peng Committed by Automerger Merge Worker
Browse files

Merge "Fix an OOB bug in btm_acl_process_sca_cmpl_pkt" into tm-dev am: 8b062828 am: fa2b7003

parents c5186de5 fa2b7003
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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) {