Skip to content
Commit 3b14268e authored by Tomasz Moń's avatar Tomasz Moń Committed by Anas Nashif
Browse files

drivers: usb_dc_native_posix: Check data length before copy



Fail requests if the data does not fit inside buffer.

This commit only adds missing sanity checks but the native posix driver
remains broken at the design level. The amount of work to fix the native
posix driver in legacy USB stack is deemed too great to be worth it.

Coverity-CID: 195841, GitHub issue #58564
Coverity-CID: 240244, GitHub issue #58570

Signed-off-by: default avatarTomasz Moń <tomasz.mon@nordicsemi.no>
parent fb408077
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment