Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c39b242b authored by Jack Pham's avatar Jack Pham Committed by Gerrit - the friendly Code Review server
Browse files

usb: pd: Avoid buffer overrun during msg_rx



When copying the buffer to the rx_msg structure, ensure
that we do not copy more than the payload buffer size.
Guard the unknown len parameter within a min() check.

Change-Id: I55feff0dbee59b680a42878a38da8e9742332008
Signed-off-by: default avatarJack Pham <jackp@codeaurora.org>
parent 3a7e7526
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment