[EMAIL PROTECTED] wrote:

>
>
> >   As a related note glibc has some questionable protections, like 
> >free(NULL)
> >   which it simply ignores resulting in bugs remaining hidden. GNU ls 
> >does a
> >   free(NULL) somewhere which we discovered while demoing truss on linux
> >   processes in BrandZ. It is also visible when you use ltrace in Linux.
>
>
> free(NULL) is defined as legal in the standard.

But only in order to be symmetric to

realloc(NULL, size)

which behaves like malloc(size).

Jörg

-- 
 EMail:[EMAIL PROTECTED] (home) Jörg Schilling D-13353 Berlin
       [EMAIL PROTECTED]                (uni)  
       [EMAIL PROTECTED]     (work) Blog: http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/old/private/ ftp://ftp.berlios.de/pub/schily
_______________________________________________
opensolaris-discuss mailing list
[email protected]

Reply via email to