Skip to content

HID.sendReport - Stack overflow #134

Open
@DesperateProgrammer

Description

@DesperateProgrammer

memcpy(&p[1], data, len);

The length argument is unchecked and will cause a stack overflow if >63.
Allthough most HID messages are less than 63 bytes long, yet it is possible for HID reports to exceed this limit and occupy multiple USB interrupt frames. Sending such reports would crash the sketch.

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