Return value of malloc(0)
hnazfoo at googlemail.com
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 rootdown.net): Ping timeout
<Cyph3r> jesus died from my syn's
More information about the freebsd-hackers