mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 16:50:55 +08:00
drivers/usbhost/hid_parser.c: Wrong size used in memcpy()
This commit is contained in:
@@ -139,9 +139,7 @@ int hid_parsereport(FAR const uint8_t *report, int rptlen,
|
||||
return -E2BIG;
|
||||
}
|
||||
|
||||
memcpy((currstate + 1),
|
||||
currstate, sizeof(struct hid_rptitem_s));
|
||||
|
||||
memcpy((currstate + 1), currstate, sizeof(struct hid_state_s));
|
||||
currstate++;
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user