[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [Qemu-trivial] [PATCH] qed: don't pass NULL to memcpy
From: |
Markus Armbruster |
Subject: |
Re: [Qemu-devel] [Qemu-trivial] [PATCH] qed: don't pass NULL to memcpy |
Date: |
Fri, 21 Oct 2011 10:31:19 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) |
Paolo Bonzini <address@hidden> writes:
> On 10/20/2011 07:23 PM, Stefan Hajnoczi wrote:
>> On Tue, Oct 18, 2011 at 09:17:35PM +0400, Pavel Borzenkov wrote:
>>> Spotted by Clang Analyzer
>>>
>>> Signed-off-by: Pavel Borzenkov<address@hidden>
>>> ---
>>> block/qed.c | 6 ++++--
>>> 1 files changed, 4 insertions(+), 2 deletions(-)
>>
>> Thanks, applied to the trivial patches tree:
>> http://repo.or.cz/w/qemu/stefanha.git/shortlog/refs/heads/trivial-patches
>
> I think there are other places in the tree where we assume that
> "memcpy(dest, NULL, 0);" works.
Looks like a fair assumption to me.