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

Commit 36b41aaf authored by Dorin Drimus's avatar Dorin Drimus Committed by Cherrypicker Worker
Browse files

Fix infinite loop caused by invalid ATT handle

1. AtvRemote apk need to be pre-installed on DUT(device under test)
2. Open Setting panel, inquiry bluetooth devices
3. Connect with OPPO Echo Play earbuds (this device responses invalid ATT handle in SDP)

Bug: 256771934
Tag: #stability
Change-Id: I479902b327f4f331bc9a647904b63c727ad76dc8
Test:  Remote device connects successfully
(cherry picked from commit ab5144e4)
Merged-In: I479902b327f4f331bc9a647904b63c727ad76dc8
parent 68a35bf3
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -313,6 +313,7 @@ void bta_gattc_sdp_callback(tSDP_STATUS sdp_status, const void* user_data) {
        !GATT_HANDLE_IS_VALID(end_handle)) {
      LOG(ERROR) << "invalid start_handle=" << loghex(start_handle)
                 << ", end_handle=" << loghex(end_handle);
      p_sdp_rec = SDP_FindServiceInDb(cb_data->p_sdp_db, 0, p_sdp_rec);
      continue;
    }