Mercurial > emacs
changeset 59661:e7a8549bb201
(access_keymap): Protect from bad value of meta_prefix_char.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Fri, 21 Jan 2005 00:31:40 +0000 |
parents | 5ee7eaad2958 |
children | c140948a6044 |
files | src/keymap.c |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/keymap.c Fri Jan 21 00:30:56 2005 +0000 +++ b/src/keymap.c Fri Jan 21 00:31:40 2005 +0000 @@ -528,6 +528,10 @@ 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);