From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NHGA9-0007BB-Kd for qemu-devel@nongnu.org; Sun, 06 Dec 2009 07:24:29 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NHGA4-00076B-4w for qemu-devel@nongnu.org; Sun, 06 Dec 2009 07:24:28 -0500 Received: from [199.232.76.173] (port=51858 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NHGA3-000760-Up for qemu-devel@nongnu.org; Sun, 06 Dec 2009 07:24:24 -0500 Received: from mx1.redhat.com ([209.132.183.28]:18696) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NHGA3-0006rQ-II for qemu-devel@nongnu.org; Sun, 06 Dec 2009 07:24:23 -0500 Message-ID: <4B1BA25E.3040105@redhat.com> Date: Sun, 06 Dec 2009 14:23:58 +0200 From: Avi Kivity MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH] Permit zero-sized qemu_malloc() & friends References: <4B193DA5.6040507@codemonkey.ws> <4B1B8A08.3060704@redhat.com> <4B1B9E6A.2000904@redhat.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: malc Cc: Paul Brook , Markus Armbruster , qemu-devel@nongnu.org On 12/06/2009 02:11 PM, malc wrote: >>>> The implementation needs to track which addresses it handed out, since it >>>> is >>>> required that malloc(0) != malloc(0) (unless both are NULL). >>>> >>>> >>> You haven't read carefully, i said range. >>> >>> >> > So? There will be tracking, it's the same as with OpenBSD where > allocations of zero and greater than zero are handled differently. > That's exactly what I said. Some tracking is needed. -- error compiling committee.c: too many arguments to function