Return value of malloc(0)
joerg at britannica.bec.de
joerg at britannica.bec.de
Thu Jun 29 17:23:46 UTC 2006
On Thu, Jun 29, 2006 at 11:44:23AM -0400, Pat Lashley wrote:
> No, our implementation is NOT legal. We always return the SAME value. To
> be legal, we should not return that value again unless it has been
> free()-ed.
It is legal due to brain damaged definition of implementation defined
behaviour, but it violates the spirit of the standard :-)
Joerg
More information about the freebsd-hackers
mailing list