Re: [PATCH] scsi: fix allocation for s390x loadparm

2024-11-19 Thread Thomas Huth
On 19/11/2024 22.31, Paolo Bonzini wrote: Coverity reports a possible buffer overrun due to a non-NUL-terminated string in scsi_property_set_loadparm(). While things are not so easy, because qdev_prop_sanitize_s390x_loadparm is designed to operate on a buffer that is not NUL-terminated, in this

Re: [PATCH] scsi: fix allocation for s390x loadparm

2024-11-19 Thread Jared Rossi
On 11/19/24 4:31 PM, Paolo Bonzini wrote: Coverity reports a possible buffer overrun due to a non-NUL-terminated string in scsi_property_set_loadparm(). While things are not so easy, because qdev_prop_sanitize_s390x_loadparm is designed to operate on a buffer that is not NUL-terminated, in thi

[PATCH] scsi: fix allocation for s390x loadparm

2024-11-19 Thread Paolo Bonzini
Coverity reports a possible buffer overrun due to a non-NUL-terminated string in scsi_property_set_loadparm(). While things are not so easy, because qdev_prop_sanitize_s390x_loadparm is designed to operate on a buffer that is not NUL-terminated, in this case the string *does* have to be NUL-termin