Prevent buffer overflow in bth_device.c
This commit is contained in:
parent
5013788989
commit
d5f2c34eaa
|
@ -214,7 +214,7 @@ bool btd_control_xfer_cb(uint8_t rhport, uint8_t stage, tusb_control_request_t c
|
||||||
}
|
}
|
||||||
else return false;
|
else return false;
|
||||||
|
|
||||||
return tud_control_xfer(rhport, request, &_btd_itf.hci_cmd, request->wLength);
|
return tud_control_xfer(rhport, request, &_btd_itf.hci_cmd, sizeof(_btd_itf.hci_cmd));
|
||||||
}
|
}
|
||||||
else if ( stage == CONTROL_STAGE_DATA )
|
else if ( stage == CONTROL_STAGE_DATA )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue