-
Notifications
You must be signed in to change notification settings - Fork 2k
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
usbus/hid: fix buffer overflow in hid_io #18860
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes make sense to me. I didn't test it yet but I should be able to do some tests tomorrow.
Spot some optimizations that can be made at the same time.
@Ollrogge Feel free to squash ! |
00c65cf
to
0f9577d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK.
Murdock results✔️ PASSED 0f9577d usbus/hid: fix buffer overflow in hid_io
ArtifactsThis only reflects a subset of all builds from https://ci-prod.riot-os.org. Please refer to https://ci.riot-os.org for a complete build for now. |
Backport provided in #18889 |
Contribution description
This PR fixes a potential buffer overflow inside
usb_hid_io_write
which occurs whenlen > CONFIG_USBUS_HID_INTERRUPT_EP_SIZE
.