8000 Implement parsing of MS OS 1.0 descriptors by ventZl · Pull Request #1631 · libusb/libusb · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Implement parsing of MS OS 1.0 descriptors #1631

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ventZl
Copy link
@ventZl ventZl commented Apr 12, 2025

XUSB can now parse MS OS 1.0 descriptors if it detects that device signals their presence.

The code attempts to do some basic checking of integrity of the payload of descriptors so developers can use xusb to check the basic sanity of descriptors in their device.

XUSB can now parse MS OS 1.0 descriptors if it detects that device
signals their presence.

The code attempts to do some basic checking of integrity of the payload
of descriptors so developers can use xusb to check the basic sanity of
descriptors in their device.
@Youw Youw requested a review from Copilot April 13, 2025 07:19
Copy link
@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 1 out of 1 changed files in this pull request and generated 2 comments.

Comments suppressed due to low confidence (1)

examples/xusb.c:832

  • The boundary check for the extended property descriptor may not correctly account for the layout of multiple extended property records. Consider reviewing the pointer arithmetic to ensure that it accurately verifies the full descriptor length.
if (property_desc != ((uint8_t *) descriptor + len))

8000
@Youw
Copy link
Member
Youw commented Apr 13, 2025

Lets start with fixing the CI

@mcuee mcuee added the Examples Examples label Apr 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Examples Examples
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0