Skip to content

ERR_BUFFER_OUT_OF_BOUNDS #8

@SlyOtis

Description

@SlyOtis

A couple of minutes after connecting i receive an error with out of bounds read. This happens at different locations depending on what im connecting to but is always and out of bounds error.

[5/11/2022, 9:18:38 AM] [Object.onDeviceAttached /Users/slyotis/Projects/FIDO2Client/test-console.ts:14:20] [LOG] new device attached {
  transport: 'ble',
  uuid: 'c68c5e2023b20e91dcc34234fehfcf5b',
  batteryLevel: 100,
  manufacturer: '**********',
  maxPacketLength: 512,
  name: '**********'
}
[5/11/2022, 9:18:38 AM] [UsbService.stop /Users/slyotis/Projects/FIDO2Client/src/transports/usb/service.ts:109:16] [LOG] stop usb service
[5/11/2022, 9:18:38 AM] [NfcService.stop /Users/slyotis/Projects/FIDO2Client/src/transports/nfc/service.ts:330:16] [LOG] stop nfc service
[5/11/2022, 9:18:38 AM] [BleService.stop /Users/slyotis/Projects/FIDO2Client/src/transports/ble/service.ts:249:16] [LOG] stop ble service
[5/11/2022, 9:18:38 AM] [BleFido2DeviceCli.cbor /Users/slyotis/Projects/FIDO2Client/src/fido2/ble-fido2-device-cli.ts:178:16] [LOG] 4 
RangeError [ERR_BUFFER_OUT_OF_BOUNDS]: Attempt to access memory outside buffer bounds
    at __node_internal_captureLargerStackTrace (node:internal/errors:465:5)
    at new NodeError (node:internal/errors:372:5)
    at boundsError (node:internal/buffer:84:11)
    at Buffer.readUInt16BE (node:internal/buffer:332:5)
    at CtapBleInitFragment.deserialize (/Users/slyotis/Projects/FIDO2Client/src/transports/ble/ble.ts:39:31)
    at Ble.recv (/Users/slyotis/Projects/FIDO2Client/src/transports/ble/ble.ts:154:22)
    at BleFido2DeviceCli.cbor (/Users/slyotis/Projects/FIDO2Client/src/fido2/ble-fido2-device-cli.ts:204:24)
    at Ctap2Cli.info (/Users/slyotis/Projects/FIDO2Client/src/ctap2/ctap2.ts:101:19)
    at Object.next (/Users/slyotis/Projects/FIDO2Client/src/client/client.ts:430:28) {
  code: 'ERR_BUFFER_OUT_OF_BOUNDS'
}
 ELIFECYCLE  Command failed with exit code 1.
 ELIFECYCLE  Command failed with exit code 1.
slyotis@Martins-MacBook-Pro FIDO2Client % 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions