Re: [PATCH v5 08/15] hw/sd/sdcard: Check address is in range

2020-06-30 Thread Philippe Mathieu-Daudé
On 6/26/20 7:43 PM, Philippe Mathieu-Daudé wrote: > On 6/26/20 6:40 PM, Philippe Mathieu-Daudé wrote: >> As a defense, assert if the requested address is out of the card area. >> >> Suggested-by: Peter Maydell >> Signed-off-by: Philippe Mathieu-Daudé >> --- >> hw/sd/sd.c | 18 ++

Re: [PATCH v5 08/15] hw/sd/sdcard: Check address is in range

2020-06-26 Thread Philippe Mathieu-Daudé
On 6/26/20 6:40 PM, Philippe Mathieu-Daudé wrote: > As a defense, assert if the requested address is out of the card area. > > Suggested-by: Peter Maydell > Signed-off-by: Philippe Mathieu-Daudé > --- > hw/sd/sd.c | 18 ++ > 1 file changed, 10 insertions(+), 8 deletions(-) > >

[PATCH v5 08/15] hw/sd/sdcard: Check address is in range

2020-06-26 Thread Philippe Mathieu-Daudé
As a defense, assert if the requested address is out of the card area. Suggested-by: Peter Maydell Signed-off-by: Philippe Mathieu-Daudé --- hw/sd/sd.c | 18 ++ 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/hw/sd/sd.c b/hw/sd/sd.c index 22392e5084..2689a27b49 10