Merge "check_ms_os_desc: fix buffer overflow."
This commit is contained in:
commit
f7fed04ace
1 changed files with 0 additions and 2 deletions
|
|
@ -131,8 +131,6 @@ static void check_ms_os_desc_v1(libusb_device_handle* device_handle, const std::
|
||||||
errx(1, "failed to retrieve MS OS v1 compat descriptor: %s", libusb_error_name(rc));
|
errx(1, "failed to retrieve MS OS v1 compat descriptor: %s", libusb_error_name(rc));
|
||||||
}
|
}
|
||||||
|
|
||||||
memcpy(&hdr, data.data(), data.size());
|
|
||||||
|
|
||||||
struct __attribute__((packed)) ms_os_desc_v1_function {
|
struct __attribute__((packed)) ms_os_desc_v1_function {
|
||||||
uint8_t bFirstInterfaceNumber;
|
uint8_t bFirstInterfaceNumber;
|
||||||
uint8_t reserved1;
|
uint8_t reserved1;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue