diff options
| author | sakumisu <[email protected]> | 2026-10-22 12:41:45 +0800 |
|---|---|---|
| committer | sakumisu <[email protected]> | 2026-10-22 17:14:30 +0800 |
| commit | d002406b9359af01fcfb601d88a2818b71856222 (patch) | |
| tree | 124b163bb743045ce7d16fc11500c39fb8c9f443 /demo/gs_usb_template.c | |
| parent | 26b0feb09bb58ebb7a3161b5605f8e186b96db1f (diff) | |
fix(security): check array overflowdev
Signed-off-by: sakumisu <[email protected]>
Diffstat (limited to 'demo/gs_usb_template.c')
| -rw-r--r-- | demo/gs_usb_template.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/demo/gs_usb_template.c b/demo/gs_usb_template.c index b82c41c8..d6b533c1 100644 --- a/demo/gs_usb_template.c +++ b/demo/gs_usb_template.c @@ -74,6 +74,7 @@ struct usb_msosv1_descriptor linux_msosv1_desc = { .vendor_code = LINUX_USBD_GS_CAN_VENDOR_CODE, .compat_id = linux_WINUSB_WCIDDescriptor, .comp_id_property = linux_WINUSB_IFx_WCIDProperties, + .comp_id_property_count = sizeof(linux_WINUSB_IFx_WCIDProperties) / sizeof(linux_WINUSB_IFx_WCIDProperties[0]), }; static const uint8_t linux_device_descriptor[] = { |
