xkbcomp: fix crash when parsing an xkb_geometry section
authorRan Benita <ran234@gmail.com>
Sun, 11 Mar 2018 15:07:06 +0000 (17:07 +0200)
committerRan Benita <ran234@gmail.com>
Mon, 30 Jul 2018 07:35:10 +0000 (10:35 +0300)
commit917636b1d0d70205a13f89062b95e3a0fc31d4ff
treea2e321a858fa07a21da77fc99a33ea037cb4ba6d
parente3cacae7b1bfda0d839c280494f23284a1187adf
xkbcomp: fix crash when parsing an xkb_geometry section

xkb_geometry sections are ignored; previously the had done so by
returning NULL for the section's XkbFile, however some sections of the
code do not expect this. Instead, create an XkbFile for it, it will
never be processes and discarded later.

Caught with the afl fuzzer.

Signed-off-by: Ran Benita <ran234@gmail.com>
src/xkbcomp/keymap.c
src/xkbcomp/parser.y