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

Commit b45d5406 authored by Marie Janssen's avatar Marie Janssen Committed by android-build-merger
Browse files

DO NOT MERGE Check size of pin before replying am: 8ba94f68 am: 9bf4427c

am: b2a6f175

* commit 'b2a6f175':
  DO NOT MERGE Check size of pin before replying
parents 545d1e31 b2a6f175
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2446,7 +2446,7 @@ bt_status_t btif_dm_pin_reply( const bt_bdaddr_t *bd_addr, uint8_t accept,
                               uint8_t pin_len, bt_pin_code_t *pin_code)
{
    BTIF_TRACE_EVENT("%s: accept=%d", __FUNCTION__, accept);
    if (pin_code == NULL)
    if (pin_code == NULL || pin_len > PIN_CODE_LEN)
        return BT_STATUS_FAIL;
#if (defined(BLE_INCLUDED) && (BLE_INCLUDED == TRUE))