Commit 97ba928a authored by Christoph Berg's avatar Christoph Berg Committed by Christoph Berg

Prevent segfault in commands.c when more than 8 keysyms per key are present.

(Closes: #914262)
parent 75d60f90
......@@ -440,6 +440,7 @@ button_write (button, client_data, call_data)
keysyms = XGetKeyboardMapping (XtDisplay (widget),
key->key.keycode,
1, &count);
if (count > 8) count = 8; /* FIXME: we are only prepared for 8 names per key, clip here */
if (! keysyms) count = 0;
all [all_count].key = key;
for (; count > 0; count--)
......
xkeycaps (2.47-4.1+deb9u1) stretch; urgency=medium
* Prevent segfault in commands.c when more than 8 keysyms per key are
present. (Closes: #914262)
-- Christoph Berg <christoph.berg@credativ.de> Wed, 21 Nov 2018 09:47:46 +0100
xkeycaps (2.47-4.1) unstable; urgency=medium
* Non-maintainer upload.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment