Subject: bug#2790: emacs 22.1.1 cannot open 5GB file on
64GB 64-bit GNU/Linux box

Stefan Monnier <monnier@xxxxxxxxxxxxxxxx> writes:

> In that case I'd rather do the check more directly, e.g.:
> (((EMACS_INT)st.st_size)*4)/4 == st.st_size

That will reintroduce the buggy reliance on undefined integer overflow.


Andreas Schwab, schwab@xxxxxxxxxxxxxx
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."