xserver/hw
Matthieu Herrb 92aea1efeb 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>
(cherry picked from commit fbc034e847)
2026-01-25 10:39:56 -08:00
..
kdrive treewide: replace xnfcalloc() calls by XNFcallocarray() 2026-01-25 10:39:55 -08:00
vfb Xvfb: Support up to 13 mouse buttons 2024-01-08 11:16:11 +00:00
xfree86 Fix a double-free on syntax error without a new line. 2026-01-25 10:39:56 -08:00
xnest include: dixfontstr.h: drop silent dependency on libxfont2 2026-01-25 10:39:56 -08:00
xquartz fix missing includes of <X11/Xfuncproto.h> 2026-01-25 10:39:55 -08:00
xwayland Remove remnants of support for SysV versions before SVR4 2026-01-25 10:39:56 -08:00
xwin fix missing includes of <X11/Xfuncproto.h> 2026-01-25 10:39:55 -08:00
meson.build Drop DMX DDX 2021-09-07 09:34:31 +00:00