emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Buffer size limitation in insdel.c


From: Eli Zaretskii
Subject: Re: Buffer size limitation in insdel.c
Date: Thu, 23 Sep 2010 09:55:56 +0200

> From: Richard Stallman <address@hidden>
> CC: address@hidden
> Date: Wed, 22 Sep 2010 20:58:59 -0400
> 
>       { EMACS_INT total_size = Z_BYTE - BEG_BYTE + GAP_SIZE + nbytes_added;
>       if (total_size < 0
>           /* Don't allow a buffer size that won't fit in a Lisp integer.  */
>           || total_size != XINT (make_number (total_size))
>           /* Don't allow a buffer size that won't fit in an int
>              even if it will fit in a Lisp integer.
>              That won't work because so many places still use `int'.  */
>           || total_size != (EMACS_INT) (int) total_size)
>         error ("Buffer exceeds maximum size");
> 
>     "bzr annotate" says this was committed a year ago by Stefan.
> 
>     Any objections to removing this limitation on 64-bit machines?
> 
> Is there a reason to believe it is not necessary any more?

It hides bugs, if nothing else.  But I understand people prefer to
keep it for now, for fear that Emacs will break completely on 64-bit
hosts.  The problem is that no one seems to be working on fixing those
bugs.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]