Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: panic when trying to iterate over an interface with zero endpoints #195

Merged

Commits on Mar 5, 2024

  1. fix: panic when trying to iterate over an interface with zero endpoints

    Some USB classes (UVC, UAC) provide alternate setting descriptors of interfaces with zero endpoints. Trying to call `endpoint_descriptors` on them caused a panic, because NULL was passed to `slice::from_raw_parts`. A branch was introduced to check for that case and create an iterator over an empty slice.
    
    See: https://stackoverflow.com/a/49244874/2948315
    alufers committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    5e8e36e View commit details
    Browse the repository at this point in the history