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

Commit 06698e25 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:...

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

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/21047823



Change-Id: I6255148b0c4bb4589b283ad316faec8fb0216fe4
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents a965ddb9 5f333179
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -349,6 +349,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) {