This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: malloc(0)


>   Roland McGrath <roland@frob.com> writes:
> > 
> > Ours is not the only system with this behavior, so programs with such
> > problems have them regardless and will be fixed if anyone cares.
> > 
> Some programs use autoconf or whatever to detect whether they need to check
> for X!=0 before blindly calling assert((foo=malloc(X))!=0).
> 
> Since this check is then encased in the program's binary shrine, changing
> libc behavior from under them isn't going to sit well with users.

That was my point exactly, if you bothered to read the whole message.  The
"problems" I referred to are anything that relies on the behavior one way
or the other, hence there is nothing gained by changing.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]