Date: Wed, 03 Mar 2004 00:50:10 +0100 From: "Poul-Henning Kamp" <phk@phk.freebsd.dk> To: Stefan Farfeleder <stefan@fafoe.narf.at> Cc: freebsd-standards@FreeBSD.ORG Subject: Re: standards/62858: malloc(0) not C99 compliant Message-ID: <89171.1078271410@critter.freebsd.dk> In-Reply-To: Your message of "Tue, 02 Mar 2004 23:39:54 %2B0100." <20040302223950.GF1021@wombat.fafoe.narf.at>
next in thread | previous in thread | raw e-mail | index | archive | help
In message <20040302223950.GF1021@wombat.fafoe.narf.at>, Stefan Farfeleder writes: >On Mon, Mar 01, 2004 at 05:37:31PM +0100, Poul-Henning Kamp wrote: > >> I want to make sure people who malloc(0) and then deref the pointer get >> the core dump they need to debug their problem. > >So you want malloc(0) to return a different pointer to unmapped memory >every time it is called? Yes. >> Does the code also fail if you give >> malloc the 'V' flag ? > >No, modulo PR bin/62859 where I forgot to CC you :) I'll look at this tomorrow if I have time. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?89171.1078271410>