Skip to content

What happens if a device has malformed descriptors? #259

@ArcaneNibble

Description

@ArcaneNibble

The WebUSB spec has procedures such as "find a list of endpoint descriptors" that involve parsing a device's descriptors. What happens if a device's descriptors are malformed? For example, what if a device declares bNumEndpoints but doesn't follow it with the correct number of endpoint descriptors?

What should happen if WebUSB's interpretation of malformed descriptors ends up diverging from the operating system driver stack's attempts to interpret the same descriptors?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions