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

Added testcase for: Controller (Xbox One For Windows) #2

Open
wants to merge 9 commits into
base: get-descriptor
Choose a base branch
from

Conversation

JoergAtGithub
Copy link

This implements a testcase, using the data of the Xbox controller you provided, which fails with the original get-descriptor code, but passes with the changes of libusb#501

jonasmalacofilho and others added 4 commits January 9, 2023 13:29
…ibusb#497)

Commit 5c9f147 (libusb#432) replaced a call to strdup with an explicit
memcpy to a buffer on the stack.

However, it incorrectly used the buffer size, instead of the clamped
uevent length, as the argument to memcpy, resulting in reads past the
end of uevent:

Fix this by using uevent_len as the argument to memcpy.

Calling strndupa was considered but abandoned, as it is not standard.

Fixes: 5c9f147 (libusb#432)
Fixes: 4779d63
Which has multiple child collections in one Input report
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants