GNU bug report logs - #25684
25.1; (downcase -1) segfaults Emacs on GNU/Linux

Previous Next

Package: emacs;

Reported by: Wilfred Hughes <me <at> wilfred.me.uk>

Date: Sat, 11 Feb 2017 00:03:02 UTC

Severity: normal

Found in version 25.1

Fixed in version 26.1

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #21 received at 25684-done <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: 25684-done <at> debbugs.gnu.org
Subject: Re: bug#25684: 25.1; (downcase -1) segfaults Emacs on GNU/Linux
Date: Thu, 16 Feb 2017 23:28:18 -0500
Version: 26.1

Applied as b91bfa1

Glenn Morris wrote:

> --- i/src/casefiddle.c
> +++ w/src/casefiddle.c
> @@ -41,7 +41,7 @@
>    if (NILP (XCHAR_TABLE (BVAR (current_buffer, downcase_table))->extras[1]))
>      Fset_case_table (BVAR (current_buffer, downcase_table));
>  
> -  if (INTEGERP (obj))
> +  if (NATNUMP (obj))
>      {
>        int flagbits = (CHAR_ALT | CHAR_SUPER | CHAR_HYPER
>  		      | CHAR_SHIFT | CHAR_CTL | CHAR_META);




This bug report was last modified 8 years and 97 days ago.

Previous Next


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