GNU bug report logs - #9079
integer overflow etc. issues (e.g., image crashes Emacs)

Previous Next

Package: emacs;

Reported by: Paul Eggert <eggert <at> cs.ucla.edu>

Date: Thu, 14 Jul 2011 07:57:02 UTC

Severity: normal

Tags: patch

Found in version 24.0.50

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: 9079 <at> debbugs.gnu.org
Subject: bug#9079: integer overflow etc. issues (e.g., image crashes Emacs)
Date: Fri, 15 Jul 2011 08:46:43 +0300
> Date: Thu, 14 Jul 2011 15:02:06 -0700
> From: Paul Eggert <eggert <at> cs.ucla.edu>
> CC: 9079 <at> debbugs.gnu.org
> 
> OK, here's an updated version of the bidi.c part of that patch,
> reflecting the bidi changes just made to the trunk.

Thanks.  But why is it a good idea to use ptrdiff_t instead of
EMACS_INT?  I used EMACS_INT for a reason, not just because I needed a
wider type: the bidi cache can never be longer than the longest Lisp
string or buffer.  So having a cache longer than that is already a
bug, and we should announce memory full when a Lisp integer overflows.




This bug report was last modified 13 years and 361 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.