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


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: 9496 <at> debbugs.gnu.org
Subject: bug#9496: 24.0.50; Segfault on TAB-only composition
Date: Sat, 04 Feb 2012 10:14:34 +0200
> Date: Fri, 03 Feb 2012 23:18:50 -0800
> From: Paul Eggert <eggert <at> cs.ucla.edu>
> 
> On 02/03/2012 10:58 PM, Eli Zaretskii wrote:
> > Then don't do that.
> 
> I don't see why not.

Because the result is meaningless anyway.  Being able to "express" a
2G column wide "character" is not useful, so avoiding overflow for
that use case is not really a solution to the problem.

It would be a much better solution if char_width would limit the
result to the same sane limit we have in all the related functions and
macros, i.e. to 1000.  If you limit everything in that function to
1000, including its result, there's no danger of overflow anywhere,
and the resulting display is not too preposterous.




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

Previous Next


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