Skip to content
Commit 8289dc75 authored by Johann Fischer's avatar Johann Fischer Committed by David Leach
Browse files

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: default avatarJohann Fischer <j.fischer@phytec.de>
Signed-off-by: default avatarDavid Brown <david.brown@linaro.org>
parent 8fa136d9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment