From f9a461416233bde17a3784c93e69ef727d6b1041 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Fri, 17 Apr 2026 10:12:57 +1000 Subject: [PATCH] os/access: handle strdup failure in ComputeLocalClient TRUE is the safe default, that's what we return for failing to get the client cmd name too. Co-Authored-by: Claude Code Part-of: --- os/access.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/os/access.c b/os/access.c index 5444ac2af..1daa36162 100644 --- a/os/access.c +++ b/os/access.c @@ -1073,6 +1073,9 @@ ComputeLocalClient(ClientPtr client) char *cmd = strdup(cmdname); Bool ret; + if (!cmd) + return TRUE; + /* Cut off any colon and whatever comes after it, see * https://lists.freedesktop.org/archives/xorg-devel/2015-December/048164.html */