commit | 8289dc75dda522b459418ec93f8a91012fdeddb9 | [log] [tgz] |
---|---|---|
author | Johann Fischer <j.fischer@phytec.de> | Mon Mar 02 12:14:50 2020 +0100 |
committer | David Leach <david.leach@nxp.com> | Tue May 05 13:06:06 2020 -0500 |
tree | 3c99ce1d29e1ccedbbb0f2f600d1a1386a4f7953 | |
parent | 8fa136d9a9b905a5d3984469101888f475446f85 [diff] |
usb: dfu: check requested length (wLength) during DFU_UPLOAD During DFU_UPLOAD, the host could requests more data as stated in wTransferSize. Limit upload length to the size of the request buffer (USB_REQUEST_BUFFER_SIZE). Signed-off-by: Johann Fischer <j.fischer@phytec.de> Signed-off-by: David Brown <david.brown@linaro.org>