]> git.eshelyaron.com Git - emacs.git/commit
Avoid crashes for invalid value of key modifiers
authorEli Zaretskii <eliz@gnu.org>
Mon, 29 Aug 2016 14:27:06 +0000 (17:27 +0300)
committerEli Zaretskii <eliz@gnu.org>
Mon, 29 Aug 2016 14:27:06 +0000 (17:27 +0300)
commit472ebd86277d26e6a7194e0e66fc171439fd8f44
treeb6c2a582887ec766d8fadffe99c0f38db812f7b8
parent67a01490934ba5a43b68b7141b20bc8e636ed7c5
Avoid crashes for invalid value of key modifiers

* src/keyboard.c (parse_solitary_modifier): If the argument SYMBOL
is not a symbol, don't try to recognize it.  See
http://lists.gnu.org/archive/html/emacs-devel/2016-08/msg00502.html
for the details.

* test/src/keymap-tests.el (keymap-where-is-internal-test): New
test, for testing the above fix.
src/keyboard.c
test/src/keymap-tests.el