Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v2.1-branch] usb: dfu: check requested length (wLength) during DFU_UPLOAD #23457

Merged
merged 1 commit into from May 5, 2020

Conversation

d3zd3z
Copy link
Collaborator

@d3zd3z d3zd3z commented Mar 13, 2020

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

Backport #23190

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>
@jfischer-no jfischer-no added the area: USB Universal Serial Bus label Mar 16, 2020
@carlescufi carlescufi added this to To do in Backports Mar 24, 2020
@carlescufi carlescufi moved this from To do to Ready in Backports Mar 24, 2020
@nashif nashif added this to the v2.1.1 milestone Mar 26, 2020
@dleach02 dleach02 closed this Apr 7, 2020
Backports automation moved this from Ready to Done Apr 7, 2020
@dleach02 dleach02 reopened this Apr 7, 2020
@dleach02 dleach02 moved this from Done to Ready in Backports Apr 7, 2020
@dleach02 dleach02 closed this Apr 16, 2020
Backports automation moved this from Ready to Done Apr 16, 2020
@dleach02 dleach02 reopened this Apr 16, 2020
@dleach02 dleach02 moved this from Done to Ready in Backports Apr 16, 2020
@dleach02 dleach02 closed this Apr 20, 2020
Backports automation moved this from Ready to Done Apr 20, 2020
@dleach02 dleach02 reopened this Apr 20, 2020
@dleach02 dleach02 moved this from Done to Ready in Backports Apr 20, 2020
@carlescufi carlescufi changed the title usb: dfu: check requested length (wLength) during DFU_UPLOAD [v2.1-branch] usb: dfu: check requested length (wLength) during DFU_UPLOAD Apr 29, 2020
@dleach02 dleach02 merged commit 8289dc7 into zephyrproject-rtos:v2.1-branch May 5, 2020
Backports automation moved this from Ready to Done May 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: USB Universal Serial Bus
Projects
Backports
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

5 participants