Re: [Qemu-devel] [PATCH] scsi: megasas: null terminate bios version buffer

2016-06-07 Thread Stefan Hajnoczi
On Tue, Jun 07, 2016 at 04:44:03PM +0530, P J P wrote: > From: Prasad J Pandit > > While reading information via 'megasas_ctrl_get_info' routine, > a local bios version buffer isn't null terminated. Add the > terminating null byte to avoid any OOB access. > > Reported-by: Li Qiang > Signed-off-

Re: [Qemu-devel] [PATCH] scsi: megasas: null terminate bios version buffer

2016-06-07 Thread Peter Maydell
On 7 June 2016 at 12:14, P J P wrote: > From: Prasad J Pandit > > While reading information via 'megasas_ctrl_get_info' routine, > a local bios version buffer isn't null terminated. Add the > terminating null byte to avoid any OOB access. > > Reported-by: Li Qiang > Signed-off-by: Prasad J Pandi

[Qemu-devel] [PATCH] scsi: megasas: null terminate bios version buffer

2016-06-07 Thread P J P
From: Prasad J Pandit While reading information via 'megasas_ctrl_get_info' routine, a local bios version buffer isn't null terminated. Add the terminating null byte to avoid any OOB access. Reported-by: Li Qiang Signed-off-by: Prasad J Pandit --- hw/scsi/megasas.c | 1 + 1 file changed, 1 in