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

From: Richard M Stallman <[email-masked]>
Date: Sat, 28 Mar 2009 22:15:59 -0400

There was an incorrect check that limited the size to INT_MAX/4
    (i.e. 512MB for systems where ints are 32bit).  I've removed this check
    in the CVS code (see patch below).  I am now able to open an 800MB file
    with this check removed.

After you visit such a file, what does (point-max) return?

Perhaps you're talking only about 64-bit systems?