diff options
| author | Chong Yidong | 2007-01-20 02:11:03 +0000 |
|---|---|---|
| committer | Chong Yidong | 2007-01-20 02:11:03 +0000 |
| commit | 602ae44c189b248e2d9a4b82b9efce33a6d04435 (patch) | |
| tree | 5544d42aa42fb488195b748802d3fec235e81e71 | |
| parent | 25170427abfd30d080beac47ccfc2ee299b7e2bf (diff) | |
| download | emacs-602ae44c189b248e2d9a4b82b9efce33a6d04435.tar.gz emacs-602ae44c189b248e2d9a4b82b9efce33a6d04435.zip | |
(read_key_sequence): Extract local map only if the
given position is in an accessible buffer region.
| -rw-r--r-- | src/keyboard.c | 3 |
1 files changed, 2 insertions, 1 deletions
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, | |||
| 9286 | { | 9286 | { |
| 9287 | pos = POSN_BUFFER_POSN (start); | 9287 | pos = POSN_BUFFER_POSN (start); |
| 9288 | if (INTEGERP (pos) | 9288 | if (INTEGERP (pos) |
| 9289 | && XINT (pos) >= BEG && XINT (pos) <= Z) | 9289 | && XINT (pos) >= BEGV |
| 9290 | && XINT (pos) <= ZV) | ||
| 9290 | { | 9291 | { |
| 9291 | map_here = get_local_map (XINT (pos), | 9292 | map_here = get_local_map (XINT (pos), |
| 9292 | current_buffer, Qlocal_map); | 9293 | current_buffer, Qlocal_map); |