Re: texinfo 4.6.91: fix broken xmalloc

Andreas Schwab <[email protected]> Sun, 14 Mar 2004 23:03:05 +0100
Newsgroups gmane.comp.tex.texinfo.pretest
Message-ID <[email protected]>
[email protected] (Karl Berry) writes:

> I'm more interested in real life than what standards committees say
> or don't say.

This _is_ real life.  install-info just aborts here because it is passing
garbage to malloc.

> xmalloc.c hasn't essentially changed for many years.  Why is the problem
> only appearing now?

Because it is invoking undefined behaviour.  So it can hit you any time.
Just by using a different compiler, for example.

Andreas.

-- 
Andreas Schwab, SuSE Labs, [email protected]
SuSE Linux AG, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."
_______________________________________________
Texinfo home page: http://www.gnu.org/software/texinfo/
[email protected]
http://ff0.org/mailman/listinfo/texinfo-pretest