summaryrefslogtreecommitdiff
path: root/demo/adb_template.c
diff options
context:
space:
mode:
authorsakumisu <[email protected]>2026-10-22 12:41:45 +0800
committersakumisu <[email protected]>2026-10-22 17:14:30 +0800
commitd002406b9359af01fcfb601d88a2818b71856222 (patch)
tree124b163bb743045ce7d16fc11500c39fb8c9f443 /demo/adb_template.c
parent26b0feb09bb58ebb7a3161b5605f8e186b96db1f (diff)
fix(security): check array overflowdev
Signed-off-by: sakumisu <[email protected]>
Diffstat (limited to 'demo/adb_template.c')
-rw-r--r--demo/adb_template.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/demo/adb_template.c b/demo/adb_template.c
index 871d41a7..34715509 100644
--- a/demo/adb_template.c
+++ b/demo/adb_template.c
@@ -100,6 +100,7 @@ struct usb_msosv1_descriptor msosv1_desc = {
.vendor_code = WCID_VENDOR_CODE,
.compat_id = WINUSB_WCIDDescriptor,
.comp_id_property = WINUSB_IFx_WCIDProperties,
+ .comp_id_property_count = sizeof(WINUSB_IFx_WCIDProperties) / sizeof(WINUSB_IFx_WCIDProperties[0]),
};
static const uint8_t device_descriptor[] = {