summaryrefslogtreecommitdiff
path: root/src/class
diff options
context:
space:
mode:
authorhathach <[email protected]>2019-10-29 18:19:10 +0700
committerhathach <[email protected]>2019-10-29 18:19:10 +0700
commita29eb87c3831a70ff8352eedf4bbe252f7bb8193 (patch)
treeb27d2778e48b116750255d00d20b989c516d064f /src/class
parent5d975d93139e0ce346372dc07ca34ef9df7b0287 (diff)
parentcef388b7bd956adbc6af4904d4d95ca4120ebb7b (diff)
Merge branch 'ZLP_Request2' of https://github.com/pigrew/tinyusb into pigrew-ZLP_Request2
Diffstat (limited to 'src/class')
-rw-r--r--src/class/hid/hid_device.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/class/hid/hid_device.c b/src/class/hid/hid_device.c
index 40ec52886..9e7bad976 100644
--- a/src/class/hid/hid_device.c
+++ b/src/class/hid/hid_device.c
@@ -241,6 +241,7 @@ bool hidd_control_request(uint8_t rhport, tusb_control_request_t const * p_reque
break;
case HID_REQ_CONTROL_SET_REPORT:
+ TU_VERIFY(p_request->wLength <=sizeof(p_hid->epout_buf));
tud_control_xfer(rhport, p_request, p_hid->epout_buf, p_request->wLength);
break;