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

From: Andreas Schwab <[email-masked]>
Date: Sun, 29 Mar 2009 22:44:01 +0200

Stefan Monnier <[email-masked]> 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.

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