|
Message-Id: <1358254432.32505.26@driftwood> Date: Tue, 15 Jan 2013 06:53:52 -0600 From: Rob Landley <rob@...dley.net> To: musl@...ts.openwall.com Cc: musl@...ts.openwall.com Subject: Re: malloc(0) behaviour On 01/15/2013 02:32:55 AM, Igmar Palsenberg wrote: > > On 14/01/2013, Rich Felker <dalias@...ifal.cx> wrote: > > Another: Null means allocation failure. As malloc ought to never > fail > > to find zero bytes free, it thus makes sense to return a non-null > > pointer. > > A valid pointer also means you should be able to store something. Says who? Fire up the mmap() man page and look at PROT_NONE. Rob
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.