Skip to content

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

Open
JoergAtGithub wants to merge 9 commits intojkcmusork:get-descriptorfrom
JoergAtGithub:add_xbox_testcase
Open

Added testcase for: Controller (Xbox One For Windows)#2
JoergAtGithub wants to merge 9 commits intojkcmusork:get-descriptorfrom
JoergAtGithub:add_xbox_testcase

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

Comments