Re: [PATCH 5/8] usb: sandbox: Bounds check read from buffer

Simon Glass
2022-04-11T18:37:44Z

On Sun, 3 Apr 2022 at 04:39, Andrew Scull <ascull@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@google.com>
> Cc: Simon Glass <sjg@chromium.org>
> Cc: Marek Vasut <marex@denx.de>
> ---
> drivers/usb/emul/sandbox_flash.c | 2 ++
> 1 file changed, 2 insertions(+)

Reviewed-by: Simon Glass <sjg@chromium.org>