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

Commit ce4804e1 authored by Jakub Pawłowski's avatar Jakub Pawłowski Committed by Android (Google) Code Review
Browse files

Merge "Fix a few OOB issues in GetAllRsiFromAdvertising"

parents e8f3a417 22a81842
Loading
Loading
Loading
Loading
+6 −1
Original line number Original line Diff line number Diff line
@@ -1150,7 +1150,12 @@ class CsisClientImpl : public CsisClient {
                    service_data_len,
                    service_data_len,
                BTM_BLE_AD_TYPE_RSI, &service_data_len))) {
                BTM_BLE_AD_TYPE_RSI, &service_data_len))) {
      RawAddress bda;
      RawAddress bda;
      STREAM_TO_BDADDR(bda, p_service_data);
      const uint8_t *p_bda = p_service_data;
      if (service_data_len < RawAddress::kLength) {
          continue;
      }

      STREAM_TO_BDADDR(bda, p_bda);
      devices.push_back(std::move(bda));
      devices.push_back(std::move(bda));
    }
    }