mirror of
https://github.com/apache/nuttx.git
synced 2026-09-19 20:39:39 +08:00
drivers/usbhost/hid_parser.c: Wrong size used in memcpy()
This commit is contained in:
@@ -11358,3 +11358,5 @@
|
||||
* arch/arm/src/samv7/chip: Add an AFEC header file (2016-01-25).
|
||||
* net/iob: iob_alloc_qentry() has the same issues as did iob_alloc()
|
||||
fixed on 2016-01-23. (2016-01-26).
|
||||
* drivers/usbhost/hid_parser.c: Wrong size used in memcpy(). From Hang
|
||||
Xu (2016-01-25).
|
||||
|
||||
@@ -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