hw/sd/sdcard: Assert if accessing an illegal group
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Fri, 18 Sep 2020 17:14:52 +0000 (19:14 +0200)
committerPhilippe Mathieu-Daudé <f4bug@amsat.org>
Wed, 21 Oct 2020 11:34:27 +0000 (13:34 +0200)
commit84816fb63e5c57159b469a66052d1b2bc862ef77
tree6edf47b44d24dac80d1adc6aeb5915d01411ee7e
parent1bd6fd8ed5933bfba53e5f5eadebd845094c3707
hw/sd/sdcard: Assert if accessing an illegal group

We can not have more group than 'wpgrps_size'.
Assert if we are accessing a group above this limit.

Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Tested-by: Alexander Bulekov <alxndr@bu.edu>
Message-Id: <20201015063824.212980-7-f4bug@amsat.org>
hw/sd/sd.c