Files
xserver/os
Olivier Fourdan affb27caa2 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>
(cherry picked from commit 57a446c0f9)
2026-01-25 10:39:57 -08:00
..
2026-01-25 10:39:57 -08:00
2026-01-25 10:39:53 -08:00
2026-01-25 10:39:53 -08:00
2026-01-19 12:47:57 -08:00
2026-01-25 10:39:56 -08:00
2016-07-21 15:04:47 -04:00
2026-01-25 10:39:53 -08:00
2026-01-19 12:32:20 -08:00
2026-01-19 12:32:20 -08:00