XLibre Xserver
Go to file
Olivier Fourdan 33958af5b5 os: Fix NULL pointer dereference
RemoveHost() can be called from DisableLocalHost() with a NULL client,
but doesn't actually check whether the given client pointer is valid on
error and assigns the error value unconditionally, leading to a possible
NULL pointer dereference and a crash of the Xserver.

To avoid the issue, simply check whether the client pointer is not NULL
prior to assign the errorValue.

Closes: https://gitlab.freedesktop.org/xorg/xserver/-/issues/1752
See-also: https://bugzilla.redhat.com/2313799
Signed-off-by: Olivier Fourdan <ofourdan@redhat.com>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1701>
2024-10-31 15:39:06 +01:00
.gitlab-ci CI: update meson from 0.56.2 (bullseye) to 1.0.0 (bullseye-backports) 2024-10-31 15:39:06 +01:00
Xext (submit/os-screensaver) os: unexport screen saver timer functions 2024-08-29 20:51:22 +02:00
Xi Xi: when removing a master search for a disabled paired device 2024-10-31 15:39:06 +01:00
composite (submit/rename-panoramix-sym) rename old symbol PANORAMIX to XINERAMA 2024-08-29 20:51:22 +02:00
config (submit/move-systemd-logind.h) move systemd-logind.h to hw/xfree86/os-support/linux 2024-08-29 20:51:22 +02:00
damageext (submit/rename-panoramix-sym) rename old symbol PANORAMIX to XINERAMA 2024-08-29 20:51:22 +02:00
dbe (submit/rename-panoramix-sym) rename old symbol PANORAMIX to XINERAMA 2024-08-29 20:51:22 +02:00
dix dix: GetPairedDevice: check if GetMaster returned NULL 2024-10-31 15:39:06 +01:00
doc (submit/colormap.h) dix: move colormap flags into colormap_priv.h and rename them 2024-08-29 20:51:21 +02:00
dri3 (submit/rename-panoramix-sym) rename old symbol PANORAMIX to XINERAMA 2024-08-29 20:51:22 +02:00
exa (submit/drop-obsolete-have-dix-config.h) drop obsolete HAVE_DIX_CONFIG_H 2024-08-29 20:51:21 +02:00
fb (submit/drop-obsolete-have-dix-config.h) drop obsolete HAVE_DIX_CONFIG_H 2024-08-29 20:51:21 +02:00
glamor include: dixfontstr.h: drop silent dependency on libxfont2 2024-10-31 15:28:48 +01:00
glx (submit/drop-cygwin) drop remains of cygwin support 2024-08-29 20:51:22 +02:00
hw xfree86: os-support: bsd: fix missing include of xf86_OSproc.h 2024-10-31 15:39:06 +01:00
include include: dixfontstr.h: drop silent dependency on libxfont2 2024-10-31 15:28:48 +01:00
man Xserver.man: Note that -byteswappedclients is the default in this release 2024-03-23 10:27:03 -07:00
mi (submit/os-screensaver) os: unexport screen saver timer functions 2024-08-29 20:51:22 +02:00
miext (submit/xnest-gcrec) fix name clash on 'GC' between Xlib and Xserver 2024-08-29 20:51:22 +02:00
os os: Fix NULL pointer dereference 2024-10-31 15:39:06 +01:00
present build: Move epoll dependency check 2024-10-31 15:39:06 +01:00
pseudoramiX (submit/drop-obsolete-have-dix-config.h) drop obsolete HAVE_DIX_CONFIG_H 2024-08-29 20:51:21 +02:00
randr (submit/rename-panoramix-sym) rename old symbol PANORAMIX to XINERAMA 2024-08-29 20:51:22 +02:00
record (submit/rename-panoramix-sym) rename old symbol PANORAMIX to XINERAMA 2024-08-29 20:51:22 +02:00
render (submit/rename-panoramix-sym) rename old symbol PANORAMIX to XINERAMA 2024-08-29 20:51:22 +02:00
test (submit/dixgrabs.h) dix: unexport GrabMatchesSecond() 2024-08-29 20:51:21 +02:00
xfixes (submit/rename-panoramix-sym) rename old symbol PANORAMIX to XINERAMA 2024-08-29 20:51:22 +02:00
xkb (submit/extDevReason) xkb: drop unused variable extDevReason 2024-08-29 20:51:22 +02:00
.appveyor.yml appveyor: Add libxcvt build dep 2021-11-04 13:03:25 +00:00
.dir-locals.el .dir-locals.el: Add missing final newline 2019-10-01 17:05:28 +00:00
.gitignore Clean up the .gitignore file 2024-01-12 00:50:24 +00:00
.gitlab-ci.yml meson.build: change project name to xnest 2024-08-30 12:28:49 +02:00
.mailmap Add a .mailmap file to canonicalize author names and emails 2023-03-15 18:10:51 +00:00
.travis.yml travis: Add OSX meson build to matrix 2019-05-02 15:42:58 +00:00
COPYING modesetting: Merge modesetting's COPYING into the xserver's. 2014-09-15 12:46:02 -07:00
README.md Fix spelling/wording issues 2020-07-05 13:07:33 -07:00
meson.build build: Fix DRI3 on DragonFly and OpenBSD 2024-10-31 15:39:06 +01:00
meson_options.txt meson_options: disable all DDX'es but Xnest 2024-08-30 12:28:30 +02:00
xorg-server.m4 xorg-server.m4: just all cflags instead of just sdkdir 2018-09-20 20:12:24 +01:00
xorg-server.pc.in xfree86: link modules against Xorg symbols on Cygwin 2012-04-05 21:57:07 -05:00
xserver.ent.in doc: relocate xserver.ent in the package root directory 2011-05-14 11:22:26 -07:00

X Server

The X server accepts requests from client applications to create windows, which are (normally rectangular) "virtual screens" that the client program can draw into.

Windows are then composed on the actual screen by the X server (or by a separate composite manager) as directed by the window manager, which usually communicates with the user via graphical controls such as buttons and draggable titlebars and borders.

For a comprehensive overview of X Server and X Window System, consult the following article: https://en.wikipedia.org/wiki/X_server

All questions regarding this software should be directed at the Xorg mailing list:

https://lists.freedesktop.org/mailman/listinfo/xorg

The primary development code repository can be found at:

https://gitlab.freedesktop.org/xorg/xserver

For patch submission instructions, see:

https://www.x.org/wiki/Development/Documentation/SubmittingPatches

As with other projects hosted on freedesktop.org, X.Org follows its Code of Conduct, based on the Contributor Covenant. Please conduct yourself in a respectful and civilized manner when using the above mailing lists, bug trackers, etc:

https://www.freedesktop.org/wiki/CodeOfConduct