[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] loader: don't call realloc(O) when no symbols a
From: |
Aurelien Jarno |
Subject: |
Re: [Qemu-devel] [PATCH] loader: don't call realloc(O) when no symbols are present |
Date: |
Mon, 28 Dec 2009 16:25:10 +0100 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
On Mon, Dec 28, 2009 at 02:53:25PM +0000, 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.
> One which admittedly differs from malloc(0) :-)
>
qemu_realloc(0) currently does raise an abort.
--
Aurelien Jarno GPG: 1024D/F1BCDB73
address@hidden http://www.aurel32.net