Fix xkb_keysym_from_name for numeric keysyms
authorPierre Le Marre <dev@wismill.eu>
Tue, 4 Jul 2023 07:23:24 +0000 (09:23 +0200)
committerWismill <dev@wismill.eu>
Fri, 14 Jul 2023 07:22:24 +0000 (09:22 +0200)
commit397e7e013def98b751bd91eb2a0b8a614dd28e2b
treedd864b50538f87ef4549249b7a9228248b40d802
parent4823838fa39db0c4cefa38a4a2bf7ab4bab1e430
Fix xkb_keysym_from_name for numeric keysyms

When parsing hexadecimal keysym using `xkb_keysym_from_name`,
the result is limited by `parse_keysym_hex` to 0xffffffff, but the
maximum keysym is XKB_MAX_KEYSYM, i.e. 0x1fffffff.

Fixed by adding an upper bound.
src/keysym.c