Return value of malloc(0)

Johannes Weiner hnazfoo at
Thu Jun 29 05:41:28 UTC 2006


On Wed, Jun 28, 2006 at 08:10:45PM +0200, Andre Albsmeier wrote:
> "If you use malloc(0) and are crazy enough to access the 'allocated'
> memory we give you a SIGSEV to show you how dumb you are :-)".

They should check the return value of malloc() in any case for
successful allocation.. shouldn't they?

Quits: JESUS (adam at Ping timeout
<Cyph3r> jesus died from my syn's

More information about the freebsd-hackers mailing list