mbox series

[PATCH-for-9.0?,0/2] hw/sd/sdcard: Avoid OOB in sd_read_byte()

Message ID 20240408141717.66154-1-philmd@linaro.org
Headers show
Series hw/sd/sdcard: Avoid OOB in sd_read_byte() | expand

Message

Philippe Mathieu-Daudé April 8, 2024, 2:17 p.m. UTC
Since this is Fix day, I went over this old bug:
https://gitlab.com/qemu-project/qemu/-/issues/487
It happens to be a QEMU implementation detail not
really related to the spec.

Philippe Mathieu-Daudé (2):
  hw/sd/sdcard: Avoid OOB in sd_read_byte() during unexpected CMD switch
  hw/sd/sdcard: Assert @data_offset is in range

 hw/sd/sd.c | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

Comments

Philippe Mathieu-Daudé June 20, 2024, 1:59 p.m. UTC | #1
On 8/4/24 16:17, Philippe Mathieu-Daudé wrote:
> Since this is Fix day, I went over this old bug:
> https://gitlab.com/qemu-project/qemu/-/issues/487
> It happens to be a QEMU implementation detail not
> really related to the spec.
> 
> Philippe Mathieu-Daudé (2):
>    hw/sd/sdcard: Avoid OOB in sd_read_byte() during unexpected CMD switch

First patch queued.