xkbcomp: escape the section names before storing them in the keymap
authorRan Benita <ran234@gmail.com>
Thu, 18 Jul 2013 11:50:21 +0000 (14:50 +0300)
committerRan Benita <ran234@gmail.com>
Thu, 18 Jul 2013 11:50:21 +0000 (14:50 +0300)
commit4b560287f8c88526da59946e99f7919a94dff16a
tree13b18fc2a6ff0ec43bc84e75c9807650e377715a
parent6bb727b2275b2715f15b5da4431dee12dcfc7e7c
xkbcomp: escape the section names before storing them in the keymap

This ensures the names are escaped before having any interaction with
the user.

This was caught by noticing dump(compile(dump())) != dump. Since that's
a nice test we add it to stringcomp.

https://bugs.freedesktop.org/show_bug.cgi?id=67032

Reported-By: Auke Booij
Signed-off-by: Ran Benita <ran234@gmail.com>
src/xkbcomp/ast-build.c
src/xkbcomp/compat.c
src/xkbcomp/keycodes.c
src/xkbcomp/symbols.c
src/xkbcomp/types.c
src/xkbcomp/xkbcomp-priv.h
test/stringcomp.c