Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NY22N-0002vx-65 for qemu-devel@nongnu.org; Thu, 21 Jan 2010 13:45:47 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NY22I-0002pS-8l for qemu-devel@nongnu.org; Thu, 21 Jan 2010 13:45:46 -0500 Received: from [199.232.76.173] (port=59141 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NY22I-0002pG-3v for qemu-devel@nongnu.org; Thu, 21 Jan 2010 13:45:42 -0500 Received: from mx20.gnu.org ([199.232.41.8]:20501) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NY22H-0008K1-KC for qemu-devel@nongnu.org; Thu, 21 Jan 2010 13:45:41 -0500 Received: from mx1.redhat.com ([209.132.183.28]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NY22G-00008l-S4 for qemu-devel@nongnu.org; Thu, 21 Jan 2010 13:45:41 -0500 From: Markus Armbruster Subject: Re: [Qemu-devel] [PATCH] loader: don't call realloc(O) when no symbols are present References: <20091228134949.GC4908@volta.aurel32.net> <20091228145325.GA7139@shareable.org> <20091229165007.GB18379@shareable.org> Date: Thu, 21 Jan 2010 19:45:25 +0100 In-Reply-To: (malc's message of "Thu, 21 Jan 2010 21:04:02 +0300 (MSK)") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: malc Cc: qemu-devel@nongnu.org, Aurelien Jarno malc writes: > On Thu, 21 Jan 2010, Markus Armbruster wrote: > >> malc writes: >> >> > On Tue, 29 Dec 2009, Jamie Lokier wrote: >> > >> >> malc wrote: >> >> > On Mon, 28 Dec 2009, Jamie Lokier wrote: >> >> > >> >> > > Aurelien Jarno wrote: >> >> > > > This fixes the loading of a stripped kernel with zero malloc disabled. >> >> > > >> >> > > *Raises an eyebrow* >> >> > > >> >> > > Even though there's different perspectives over whether qemu_malloc(0) >> >> > > should be allowed, inherited from ambiguity over malloc(0), >> >> > > realloc(p,0) has always had a standard, well-defined meaning. >> >> > >> >> > No. >> >> > http://groups.google.com/group/comp.std.c/browse_thread/thread/4e9af8847613d71f/6f75ad22e0768a0b?q=realloc++group:comp.std.c#6f75ad22e0768a0b >> >> >> >> Wow, thanks for that. It's a real surprise. Looks like C99's own >> >> rationale is not consistent with itself on the subject, and differs >> >> from C90 where the "standard, well-defined meaning" I referred to was >> >> defined. >> > >> > Yep. >> >> No, this is a misinterpretation of the C99 standard, made possible by >> its poor wording. The C99 Rationale is perfectly clear, though: > > You have to show the flaw in Hallvard B Furuseth's analysis to claim > that it's a misinterpretation. And unlike the standard rationale is > non normative. > > [..snip..] I did. If that doesn't convince you, I'll gladly wait for the Technical Corrigendum that'll put this rather absurd misreading to rest.