From 602ae44c189b248e2d9a4b82b9efce33a6d04435 Mon Sep 17 00:00:00 2001 From: Chong Yidong Date: Sat, 20 Jan 2007 02:11:03 +0000 Subject: [PATCH] (read_key_sequence): Extract local map only if the given position is in an accessible buffer region. --- src/keyboard.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/keyboard.c b/src/keyboard.c index f8f751161c4..8b53a6ebbda 100644 --- a/src/keyboard.c +++ b/src/keyboard.c @@ -9286,7 +9286,8 @@ read_key_sequence (keybuf, bufsize, prompt, dont_downcase_last, { pos = POSN_BUFFER_POSN (start); if (INTEGERP (pos) - && XINT (pos) >= BEG && XINT (pos) <= Z) + && XINT (pos) >= BEGV + && XINT (pos) <= ZV) { map_here = get_local_map (XINT (pos), current_buffer, Qlocal_map); -- 2.39.2