commit | beb341ae7f43a4424ca321315a25fe9133030de2 | [log] [tgz] |
---|---|---|
author | Andrew Scull <ascull@google.com> | Sun Apr 03 10:39:12 2022 +0000 |
committer | Tom Rini <trini@konsulko.com> | Fri Apr 29 11:11:36 2022 -0400 |
tree | d4711e35c4775e52f435e888abf03e16a8198bc2 | |
parent | 62120155b67313509b673e051155075383a8a33a [diff] |
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 <ascull@google.com> Cc: Simon Glass <sjg@chromium.org> Cc: Marek Vasut <marex@denx.de> Reviewed-by: Simon Glass <sjg@chromium.org>