[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Segfault after bad value for meta-prefix-char
From: |
Richard Stallman |
Subject: |
Re: Segfault after bad value for meta-prefix-char |
Date: |
Thu, 20 Jan 2005 16:32:48 -0500 |
Does this patch fix the problem?
*** keymap.c 13 Jan 2005 14:48:46 -0500 1.299
--- keymap.c 20 Jan 2005 10:44:16 -0500
***************
*** 528,533 ****
--- 528,537 ----
struct gcpro gcpro1;
Lisp_Object meta_map;
GCPRO1 (map);
+ /* A strange value in which Meta is set would cause
+ infinite recursion. Protect against that. */
+ if (meta_prefix_char & CHAR_META)
+ meta_prefix_char = make_number (27);
meta_map = get_keymap (access_keymap (map, meta_prefix_char,
t_ok, noinherit, autoload),
0, autoload);