xserver/hw/xfree86/parser
Jesse Adkins c4717321c0 xfree86: parser: Never use constant strings for driver names (fixes #17438)
When the parser sees the "keyboard" driver, it automatically (and
 silently) replaces it with the constant string "kbd".
Everybody else uses malloc'd memory for the driver name, so input
 device closure assumes it can use free.
Free val.str, so this crash doesn't turn into a memory leak. Whew.

Signed-off-by: Jesse Adkins <jesserayadkins@gmail.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
(cherry picked from commit bce12f2956)
2010-08-21 13:40:50 -07:00
..
Configint.h config: Remove useless xf86conf{{m,c,re}alloc},free} macros 2009-04-06 17:56:49 -04:00
configProcs.h Export some symbols from libxf86config when installing it. 2008-12-07 14:59:25 -02:00
Device.c config: Remove useless xf86conf{{m,c,re}alloc},free} macros 2009-04-06 17:56:49 -04:00
DRI.c config: Remove useless xf86conf{{m,c,re}alloc},free} macros 2009-04-06 17:56:49 -04:00
Extensions.c config: Remove useless xf86conf{{m,c,re}alloc},free} macros 2009-04-06 17:56:49 -04:00
Files.c config: Remove useless xf86conf{{m,c,re}alloc},free} macros 2009-04-06 17:56:49 -04:00
Flags.c Don't cast double to int: use default conversions or explicitly round. 2009-11-03 13:25:44 +10:00
Input.c xfree86: parser: Never use constant strings for driver names (fixes #17438) 2010-08-21 13:40:50 -07:00
Layout.c config: Remove useless xf86conf{{m,c,re}alloc},free} macros 2009-04-06 17:56:49 -04:00
Makefile.am parser: make libxf86config_internal.la not installed. 2009-08-07 13:36:52 +10:00
Module.c config: Remove useless xf86conf{{m,c,re}alloc},free} macros 2009-04-06 17:56:49 -04:00
Monitor.c config: Remove useless xf86conf{{m,c,re}alloc},free} macros 2009-04-06 17:56:49 -04:00
Pointer.c config: Remove useless xf86conf{{m,c,re}alloc},free} macros 2009-04-06 17:56:49 -04:00
read.c config: Remove useless xf86conf{{m,c,re}alloc},free} macros 2009-04-06 17:56:49 -04:00
scan.c config: Remove useless xf86conf{{m,c,re}alloc},free} macros 2009-04-06 17:56:49 -04:00
Screen.c config: Remove useless xf86conf{{m,c,re}alloc},free} macros 2009-04-06 17:56:49 -04:00
Vendor.c config: Remove useless xf86conf{{m,c,re}alloc},free} macros 2009-04-06 17:56:49 -04:00
Video.c config: Remove useless xf86conf{{m,c,re}alloc},free} macros 2009-04-06 17:56:49 -04:00
write.c Rework symbol visibility for easier maintenance 2008-12-03 05:43:34 -02:00
xf86Optrec.h config: s/xf86configStrdup/strdup/ 2009-04-06 17:51:35 -04:00
xf86Parser.h Obsolete InputDevices keyword in xorg.conf Files section 2009-02-18 14:50:25 -08:00
xf86tokens.h Obsolete InputDevices keyword in xorg.conf Files section 2009-02-18 14:50:25 -08:00