[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

RE: libc6 2.2.1 malloc() bug



> > After a little investigation I have tracked it down to the first call to
> > malloc() always setting errno even when it succeeds. The hostname
utility
> > relies on errno remaining zero  after a successful malloc().
>
> Interesting; the errno man page on my Mandrake 7.2 system says errno
> is only defined when a call has failed, and that it is valid for the
> library to change it when a call succeeds.  That agrees with my
> understanding of errno behaviour too.  So I'd say this was a hostname bug.

Agreed, my man page for errno says the same. I'll file a bug report against
the hostname package.

Nick
----------------------------------------------------------------
Nick Holgate <holgate@debian.org>
GPG key from public servers : Key ID FD9C18AF
Fingerprint = 9DCA EDEA D5C5 57DA 23F3  1A2B 2273 5645 FD9C 18AF




Reply to: