Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Tue, 15 Jan 2013 06:53:52 -0600
From: Rob Landley <>
Subject: Re: malloc(0) behaviour

On 01/15/2013 02:32:55 AM, Igmar Palsenberg wrote:

> > On 14/01/2013, Rich Felker <> 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.


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.