Commit 3a1d22bd authored by Benjamin Tissoires's avatar Benjamin Tissoires
Browse files

selftests/hid: add a test case for the recent syzbot underflow

Syzbot found a buffer underflow in __hid_request(). Add a related test
case for it.

It's not perfect, but it allows to catch a corner case when a report
descriptor is crafted so that it has a size of 0.

Link: https://patch.msgid.link/20250710-report-size-null-v2-4-ccf922b7c4e5@kernel.org


Signed-off-by: default avatarBenjamin Tissoires <bentiss@kernel.org>
parent c2ca42f1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment