qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] scsi: fix scsi_convert_sense crash when in_buf


From: Eric Blake
Subject: Re: [Qemu-devel] [PATCH] scsi: fix scsi_convert_sense crash when in_buf == NULL && in_len == 0
Date: Thu, 4 Jan 2018 11:42:04 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0

On 12/22/2017 09:55 AM, Paolo Bonzini wrote:
> scsi_disk_emulate_command passes in_buf == NULL when sent a REQUEST
> SENSE command.  Check for in_len == 0 before dereferencing in_buf.
> 
> Fixes: f68d98b21fa74155dc7c1fd212474379ac3c7531
> Reported-by: Roman Kagan <address@hidden>
> Signed-off-by: Paolo Bonzini <address@hidden>
> ---
>  scsi/utils.c | 12 ++++++------
>  1 file changed, 6 insertions(+), 6 deletions(-)

How does this compare to
https://lists.gnu.org/archive/html/qemu-devel/2018-01/msg00582.html ?

-- 
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3266
Virtualization:  qemu.org | libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]