[PATCH 5/8] usb: sandbox: Bounds check read from buffer
Simon Glass
sjg at chromium.org
Mon Apr 11 20:35:28 CEST 2022
On Sun, 3 Apr 2022 at 04:39, Andrew Scull <ascull at google.com> wrote:
>
> 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 at google.com>
> Cc: Simon Glass <sjg at chromium.org>
> Cc: Marek Vasut <marex at denx.de>
> ---
> drivers/usb/emul/sandbox_flash.c | 2 ++
> 1 file changed, 2 insertions(+)
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list