keysym: properly handle overflow in 0x keysym names
authorRan Benita <ran@unusedvar.com>
Tue, 30 Mar 2021 16:11:59 +0000 (19:11 +0300)
committerRan Benita <ran@unusedvar.com>
Tue, 30 Mar 2021 16:17:29 +0000 (19:17 +0300)
commit1c0e28ad2615b4dc1f816eb4e3abcc391e73784f
tree57551dd51e00e55b88aa689b4f1912baec745efc
parent1638409b22aef33d487863876ab214b949db4984
keysym: properly handle overflow in 0x keysym names

Relatedly, strtoul allows a lot of unwanted stuff (spaces, +/- sign,
thousand seperators), we really ought not use it. But that's for another
time.

Signed-off-by: Ran Benita <ran@unusedvar.com>
src/keysym.c
test/keysym.c