Skip to content

hw/scsi/scsi-disk: Avoid buffer overrun parsing loadparam (CID 1565746)

Philippe Mathieu-Daudé qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2hw/s390x: Declare loadparm as char[LOADPARM_LEN]hw/core/qdev-properties-system.c hw/s390x/ccw-device.h hw/s390x/ipl.c +4 more+16 -123 replies
2/2hw/scsi/scsi-disk: Avoid buffer overrun parsing 'loadparam'hw/scsi/scsi-disk.c+3 -94 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] hw/scsi/scsi-disk: Avoid buffer overrun parsing loadparam (CID 1565746)

Replace magic 8 by proper LOADPARM_LEN definition, use array of char, allocate loadparam[] within qdev state, fixing Coverity overrun report (CID 1565746).

Philippe Mathieu-Daudé (2):
hw/s390x: Declare loadparm as char[LOADPARM_LEN] hw/scsi/scsi-disk: Avoid buffer overrun parsing 'loadparam'

 hw/s390x/ccw-device.h               |  5 +++--
 hw/s390x/ipl.h                      |  2 +-
 include/hw/qdev-properties-system.h |  2 +-
 include/hw/s390x/s390-virtio-ccw.h  |  3 ++-
 hw/core/qdev-properties-system.c    |  8 +++++---
 hw/s390x/ipl.c                      |  6 +++---
 hw/scsi/scsi-disk.c                 | 12 +++---------
 7 files changed, 18 insertions(+), 20 deletions(-)
Signature · 1 line
2.45.2