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

Commit 504ce79f authored by Zero Liu's avatar Zero Liu Committed by huirong liao
Browse files

Fix coverity scan issue: integer overflows

[Description]
Issue type: integer overflows

Bug: 247905252
Test: gatt function pass

Change-Id: If0affa91dffab8088aa8d30839e48dcc36ddcc8c
parent 07dd21c6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -558,7 +558,7 @@ bool bta_gattc_check_bg_conn(tGATT_IF client_if, const RawAddress& remote_bda,
  for (i = 0; i < ble_acceptlist_size() && !is_bg_conn; i++, p_bg_tck++) {
    if (p_bg_tck->in_use && (p_bg_tck->remote_bda == remote_bda ||
                             p_bg_tck->remote_bda.IsEmpty())) {
      if (((p_bg_tck->cif_mask & (1 << (client_if - 1))) != 0) &&
      if (((p_bg_tck->cif_mask & ((tBTA_GATTC_CIF_MASK)1 << (client_if - 1))) != 0) &&
          role == HCI_ROLE_CENTRAL)
        is_bg_conn = true;
    }