GNU bug report logs - #9496
24.0.50; Segfault on TAB-only composition

Previous Next

Package: emacs;

Reported by: Johan Bockgård <bojohan <at> gnu.org>

Date: Tue, 13 Sep 2011 20:27:01 UTC

Severity: important

Merged with 9775

Found in versions 24.0.50, 24.0.90

Done: Chong Yidong <cyd <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #36 received at 9496 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: 9496 <at> debbugs.gnu.org
Subject: Re: bug#9496: 24.0.50; Segfault on TAB-only composition
Date: Fri, 03 Feb 2012 23:22:34 +0200
> Date: Fri, 03 Feb 2012 11:28:29 -0800
> From: Paul Eggert <eggert <at> cs.ucla.edu>
> 
> -static int
> +static EMACS_INT
>  char_width (int c, struct Lisp_Char_Table *dp)
>  {
> -  int width = CHAR_WIDTH (c);
> +  EMACS_INT width = CHAR_WIDTH (c);

Oh, come on!  CHAR_WIDTH returns the character's width
_on_the_screen_.  So how in the world could it _ever_ overflow a
32-bit integer??




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

Previous Next


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