[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] Fix ATAPI GET_CONFIGURATION function
From: |
Carlo Marcelo Arenas Belon |
Subject: |
Re: [Qemu-devel] [PATCH] Fix ATAPI GET_CONFIGURATION function |
Date: |
Sun, 25 May 2008 05:38:38 -0500 |
User-agent: |
Mutt/1.4.1i |
Alexander
sorry if I wasn't clear enough. I wasn't arguing about your patch (which is
correct) but was trying to explain why the old implementation was done the way
it was, in an (obviously excessive) effort to prevent a buffer overflow for the
response (which used to be hardcoded to 32 bytes regardless of the size of the
buffer) as shown by :
http://svn.savannah.gnu.org/viewvc/trunk/hw/ide.c?root=qemu&r1=3147&r2=3161
a slightly modified version of your patch (which I'd been using against kvm
and validated correct with Linux and Solaris guests) attached.
the only difference, is that it handles explicitly the empty buffer case and
cleans up the len calculation which shouldn't had been calculated
conditionally as you pointed out.
Carlo
kvm-69-qemu-ide-dvdrom.patch
Description: Text document
- [Qemu-devel] [PATCH] Fix ATAPI GET_CONFIGURATION function, Alexander Graf, 2008/05/21
- Re: [Qemu-devel] [PATCH] Fix ATAPI GET_CONFIGURATION function, Alexander Graf, 2008/05/24
- Re: [Qemu-devel] [PATCH] Fix ATAPI GET_CONFIGURATION function, Alexander Graf, 2008/05/24
- Re: [Qemu-devel] [PATCH] Fix ATAPI GET_CONFIGURATION function, Carlo Marcelo Arenas Belon, 2008/05/25
- Re: [Qemu-devel] [PATCH] Fix ATAPI GET_CONFIGURATION function, Alexander Graf, 2008/05/25
- Re: [Qemu-devel] [PATCH] Fix ATAPI GET_CONFIGURATION function,
Carlo Marcelo Arenas Belon <=
- Re: [Qemu-devel] [PATCH] Fix ATAPI GET_CONFIGURATION function, Alexander Graf, 2008/05/26
- Re: [Qemu-devel] [PATCH] Fix ATAPI GET_CONFIGURATION function, Alexander Graf, 2008/05/26
- Re: [Qemu-devel] [PATCH] Fix ATAPI GET_CONFIGURATION function, Carlo Marcelo Arenas Belon, 2008/05/27
- Re: [Qemu-devel] [PATCH] Fix ATAPI GET_CONFIGURATION function, Alexander Graf, 2008/05/29