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

2022-04-29 Thread Tom Rini
On Sun, Apr 03, 2022 at 10:39:12AM +, Andrew Scull 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 > Cc: Simon Glass > Cc: Marek Vasut > Reviewed-by: Simon Glass Applied to u-boot/master,

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

2022-04-11 Thread Simon Glass
On Sun, 3 Apr 2022 at 04:39, Andrew Scull 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 > Cc: Simon Glass > Cc: Marek Vasut > --- > drivers/usb/emul/sandbox_flash.c | 2 ++ > 1 file