[PATCH v7 10/17] hw/sd/sdcard: Check address is in range

2020-06-30 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 | 16 +--- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/hw/sd/sd.c b/hw/sd/sd.c index 548745614e..5d1b314a32 10064

Re: [PATCH v7 10/17] hw/sd/sdcard: Check address is in range

2020-07-03 Thread Peter Maydell
On Tue, 30 Jun 2020 at 14:39, 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é > -- Reviewed-by: Peter Maydell thanks -- PMM