xserver/hw/xfree86/parser
Matthieu Herrb bb36aa5ae1 Fix a double-free on syntax error without a new line.
$ echo "#foo\nfoo" > custom_config $ X -config custom_config

will trigger the double free because the contents of xf86_lex_val.str
have been realloc()ed aready  when free is called in read.c:209.

This copies the lex token and adds all the necessary free() calls to
avoid leaking it

Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1176>
2024-10-31 15:39:06 +01:00
..
Configint.h Fix spelling/wording issues 2020-07-05 13:07:33 -07:00
DRI.c Fix a double-free on syntax error without a new line. 2024-10-31 15:39:06 +01:00
Device.c Fix a double-free on syntax error without a new line. 2024-10-31 15:39:06 +01:00
Extensions.c Fix a double-free on syntax error without a new line. 2024-10-31 15:39:06 +01:00
Files.c Fix a double-free on syntax error without a new line. 2024-10-31 15:39:06 +01:00
Flags.c Fix a double-free on syntax error without a new line. 2024-10-31 15:39:06 +01:00
Input.c Fix a double-free on syntax error without a new line. 2024-10-31 15:39:06 +01:00
InputClass.c Fix a double-free on syntax error without a new line. 2024-10-31 15:39:06 +01:00
Layout.c Fix a double-free on syntax error without a new line. 2024-10-31 15:39:06 +01:00
Module.c Fix a double-free on syntax error without a new line. 2024-10-31 15:39:06 +01:00
Monitor.c Fix a double-free on syntax error without a new line. 2024-10-31 15:39:06 +01:00
OutputClass.c Fix a double-free on syntax error without a new line. 2024-10-31 15:39:06 +01:00
Pointer.c Fix a double-free on syntax error without a new line. 2024-10-31 15:39:06 +01:00
Screen.c Fix a double-free on syntax error without a new line. 2024-10-31 15:39:06 +01:00
Vendor.c Fix a double-free on syntax error without a new line. 2024-10-31 15:39:06 +01:00
Video.c Fix a double-free on syntax error without a new line. 2024-10-31 15:39:06 +01:00
configProcs.h fix missing includes of <X11/Xfuncproto.h> 2024-07-20 17:18:38 +00:00
meson.build Add a Meson build system alongside autotools. 2017-04-26 15:25:27 -07:00
read.c Fix a double-free on syntax error without a new line. 2024-10-31 15:39:06 +01:00
scan.c Fix a double-free on syntax error without a new line. 2024-10-31 15:39:06 +01:00
write.c (submit/cleanup-api-xfree86) xfree86: parser: move private defs from xf86Parser.h to xf86Parser_priv.h 2024-08-29 20:51:22 +02:00
xf86Optrec.h Drop trailing whitespaces 2014-11-12 10:25:00 +10:00
xf86Parser.h (submit/cleanup-api-xfree86) xfree86: parser: move private defs from xf86Parser.h to xf86Parser_priv.h 2024-08-29 20:51:22 +02:00
xf86Parser_priv.h (submit/cleanup-api-xfree86) xfree86: parser: move private defs from xf86Parser.h to xf86Parser_priv.h 2024-08-29 20:51:22 +02:00
xf86tokens.h (submit/xf86-parser v2) xfree86: parser: rename IOBASE for fixing name conflict 2024-08-29 20:51:21 +02:00