]> Git Repo - J-u-boot.git/commit
usb: sandbox: Bounds check read from buffer
authorAndrew Scull <[email protected]>
Sun, 3 Apr 2022 10:39:12 +0000 (10:39 +0000)
committerTom Rini <[email protected]>
Fri, 29 Apr 2022 15:11:36 +0000 (11:11 -0400)
commitbeb341ae7f43a4424ca321315a25fe9133030de2
treed4711e35c4775e52f435e888abf03e16a8198bc2
parent62120155b67313509b673e051155075383a8a33a
usb: sandbox: Bounds check read from buffer

The buffer is 512 bytes but read requests can be 800 bytes. Limit the
request to the size of the buffer.

Signed-off-by: Andrew Scull <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Marek Vasut <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
drivers/usb/emul/sandbox_flash.c
This page took 0.033673 seconds and 4 git commands to generate.