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 write size #399

Merged
merged 2 commits into from
Nov 16, 2023
Merged

Fix write size #399

merged 2 commits into from
Nov 16, 2023

Conversation

bith3ad
Copy link

@bith3ad bith3ad commented Nov 10, 2023

Fix the right size without introducing a 2nd parameter for this to make the code a bit cleaner.

Marco Felsch added 2 commits November 10, 2023 10:47
This reverts commit de317f5.

The upcoming patch will fix the issue more straight forward.

Signed-off-by: Marco Felsch <[email protected]>
Since commit 3f512a6 ("libuuu: hidreport: fix write size for
Windows") it may happen that the memcpy() does read outside the provided
memory. Fix this by moving the Windows HIDAPI workaround behind the
memcpy(), here no overflows can happen since the m_out_buff size is at
least m_size_out.

Signed-off-by: Marco Felsch <[email protected]>
@nxpfrankli nxpfrankli merged commit f9080cc into nxp-imx:master Nov 16, 2023
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.

2 participants