Skip to content
Commit 18d3499d authored by Michael Hope's avatar Michael Hope Committed by Carles Cufí
Browse files

drivers: usb: fix a buffer overflow in usb_sam0.c



The driver currently blindly copies all of the outgoing bytes into the
endpoint.  Instead, calculate the endpoint size and copy up to that
amount instead.

Signed-off-by: default avatarMichael Hope <mlhx@google.com>
parent fe35269d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment