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

Commit 54496cba authored by Ventsislav Zahariev's avatar Ventsislav Zahariev Committed by Gerrit Code Review
Browse files

Merge "Fix coverity scan issue: integer overflows"

parents 29380ec4 504ce79f
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;
    }