From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1OAIWo-0002PL-Sj for qemu-devel@nongnu.org; Fri, 07 May 2010 04:03:22 -0400 Received: from [140.186.70.92] (port=43183 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OAIWm-0002Mv-LW for qemu-devel@nongnu.org; Fri, 07 May 2010 04:03:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OAIWk-0007a8-R9 for qemu-devel@nongnu.org; Fri, 07 May 2010 04:03:20 -0400 Received: from mx1.redhat.com ([209.132.183.28]:28532) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OAIWk-0007ZE-Gv for qemu-devel@nongnu.org; Fri, 07 May 2010 04:03:18 -0400 Message-ID: <4BE3C928.3070005@redhat.com> Date: Fri, 07 May 2010 10:02:48 +0200 From: Kevin Wolf MIME-Version: 1.0 References: <1273172027-20819-1-git-send-email-weil@mail.berlios.de> In-Reply-To: <1273172027-20819-1-git-send-email-weil@mail.berlios.de> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Re: [PATCH] block/vdi: Allow disk images of size 0 List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Weil Cc: QEMU Developers Am 06.05.2010 20:53, schrieb Stefan Weil: > Even it is not very useful, users may create images of size 0. > > Without the special option CONFIG_ZERO_MALLOC, qemu_mallocz > aborts execution when it is told to allocate 0 bytes, > so avoid this kind of call. > > Cc: Kevin Wolf > Signed-off-by: Stefan Weil This stupid qemu_malloc behaviour only ever introduces bugs instead of avoiding them... *sigh* Thanks, applied to the block branch. Kevin