diff options
| author | hathach <[email protected]> | 2019-10-29 18:19:10 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2019-10-29 18:19:10 +0700 |
| commit | a29eb87c3831a70ff8352eedf4bbe252f7bb8193 (patch) | |
| tree | b27d2778e48b116750255d00d20b989c516d064f /src/class | |
| parent | 5d975d93139e0ce346372dc07ca34ef9df7b0287 (diff) | |
| parent | cef388b7bd956adbc6af4904d4d95ca4120ebb7b (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.c | 1 |
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;
|
