xserver-multidpi/hw/xfree86/parser
Jesse Adkins bce12f2956 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>
2010-08-13 11:43:18 +10:00
..
Configint.h Remove unnecessary parentheses around return values in functions 2010-06-10 06:42:42 -07:00
configProcs.h xfree86: Introduce InputClass configuration 2009-12-23 05:54:40 -08:00
Device.c Remove unnecessary parentheses around return values in functions 2010-06-10 06:42:42 -07: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 Remove unnecessary parentheses around return values in functions 2010-06-10 06:42:42 -07:00
Input.c xfree86: parser: Never use constant strings for driver names (fixes #17438) 2010-08-13 11:43:18 +10:00
InputClass.c xfree86: parser: Never use constant strings for driver names (fixes #17438) 2010-08-13 11:43:18 +10:00
Layout.c Remove unnecessary parentheses around return values in functions 2010-06-10 06:42:42 -07:00
Makefile.am xfree86: Allow adding sysconfdir and datadir to config search paths 2010-04-08 15:21:00 +10:00
Module.c config: Remove useless xf86conf{{m,c,re}alloc},free} macros 2009-04-06 17:56:49 -04:00
Monitor.c Remove unnecessary parentheses around return values in functions 2010-06-10 06:42:42 -07:00
Pointer.c config: Remove useless xf86conf{{m,c,re}alloc},free} macros 2009-04-06 17:56:49 -04:00
read.c Remove unnecessary parentheses around return values in functions 2010-06-10 06:42:42 -07:00
scan.c Remove unnecessary parentheses around return values in functions 2010-06-10 06:42:42 -07:00
Screen.c Remove unnecessary parentheses around return values in functions 2010-06-10 06:42:42 -07:00
Vendor.c config: Remove useless xf86conf{{m,c,re}alloc},free} macros 2009-04-06 17:56:49 -04:00
Video.c Remove unnecessary parentheses around return values in functions 2010-06-10 06:42:42 -07:00
write.c xfree86: Introduce InputClass configuration 2009-12-23 05:54:40 -08:00
xf86Optrec.h config: s/xf86configStrdup/strdup/ 2009-04-06 17:51:35 -04:00
xf86Parser.h xfree86: Match devices based on current driver setting 2010-06-11 09:44:40 +10:00
xf86tokens.h xfree86: Match devices based on current driver setting 2010-06-11 09:44:40 +10:00