Received: from eggs.gnu.org ([140.186.70.92]:42009) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RHAVi-0007rA-Aj for qemu-devel@nongnu.org; Fri, 21 Oct 2011 04:31:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RHAVg-0007Pu-EN for qemu-devel@nongnu.org; Fri, 21 Oct 2011 04:31:26 -0400 From: Markus Armbruster References: <1318958255-14008-1-git-send-email-pavel.borzenkov@gmail.com> <20111020172301.GA14359@stefanha-thinkpad.localdomain> <4EA112A4.5000106@redhat.com> Date: Fri, 21 Oct 2011 10:31:19 +0200 In-Reply-To: <4EA112A4.5000106@redhat.com> (Paolo Bonzini's message of "Fri, 21 Oct 2011 08:35:16 +0200") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [Qemu-devel] [Qemu-trivial] [PATCH] qed: don't pass NULL to memcpy List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: qemu-trivial@nongnu.org, Stefan Hajnoczi , qemu-devel@nongnu.org, Pavel Borzenkov Paolo Bonzini 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 >>> --- >>> 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.