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



> From: Andreas Schwab <schwab@xxxxxxxxxxxxxx>
> Cc: 2790@xxxxxxxxxxxxxxxxxxxxxxxxxx, Stefan Monnier
> <monnier@xxxxxxxxxxxxxxxx>, tutufan@xxxxxxxxx
> Date: Sat, 28 Mar 2009 12:12:04 +0100
>
> Eli Zaretskii <eliz@xxxxxxx> writes:
>
> > Personally, I would change INT_MAX/4 to LONG_MAX/4,
>
> This is wrong, see also make_gap_larger. The range for buffer positions
> is still limited by the range of int.

Then that's another bug waiting to happen, isn't it? Buffer positions
should be limited by EMACS_INT, not by int, right?







Privacy