Re: Return value of malloc(0)
- From: joerg@xxxxxxxxxxxxxxxxx
- Date: Thu, 29 Jun 2006 18:56:29 +0200
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
_______________________________________________
freebsd-hackers@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@xxxxxxxxxxx"
- Follow-Ups:
- Re: Return value of malloc(0)
- From: Pat Lashley
- Re: Return value of malloc(0)
- References:
- Return value of malloc(0)
- From: Andre Albsmeier
- Re: Return value of malloc(0)
- From: Stefan Farfeleder
- Re: Return value of malloc(0)
- From: Pat Lashley
- Return value of malloc(0)
- Prev by Date: Re: Return value of malloc(0)
- Next by Date: Re: Return value of malloc(0)
- Previous by thread: Re: Return value of malloc(0)
- Next by thread: Re: Return value of malloc(0)
- Index(es):