Files
xserver/os
Olivier Fourdan 57a446c0f9 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-09-23 09:36:52 +02:00
..
2024-09-23 09:36:52 +02:00
2024-04-15 19:54:34 +00:00
2024-06-18 00:52:11 +00:00
2024-05-08 09:37:35 +02:00
2024-03-09 17:34:51 +00:00
2024-03-09 17:34:51 +00:00
2024-09-02 16:02:39 +00:00
2016-07-21 15:04:47 -04:00
2012-03-21 13:54:42 -07:00
2012-03-21 13:54:42 -07:00
2024-02-25 11:55:56 +01:00
2024-03-03 23:11:05 +00:00
2024-03-03 23:11:05 +00:00
2013-10-31 16:58:12 -07:00