Re: texinfo 4.6.91: fix broken xmalloc
Andreas Schwab <[email protected]> Sun, 14 Mar 2004 18:28:28 +0100
| Newsgroups | gmane.comp.tex.texinfo.pretest |
|---|---|
| Message-ID | <[email protected]> |
[email protected] (Karl Berry) writes: > You are requiring C89 anyway, so what's the problem? > > Nothing specific, I've just wasted so much time with stupid type clashes > involving size_t, I have always avoided it. Standards != reality. > > It's not about >2gb, but about bogus malloc declaration. > > What's wrong with void *malloc()? It's not a prototype. > It causes install-info to fail with ENOMEM. It's a blocker for 64 > bit systems. > > Why should a lack of size_t in a declaration cause ENOMEM, and in > install-info of all places? That makes no sense to me at all! It's all > the same bits. But sizeof(unsigned) != sizeof(size_t). > What "64-bit system" is this? I compiled on Linux and Solaris systems > with 64-bit support and didn't see this. How do I reproduce? It's undefined behaviour. You can get anything. 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