Files
xserver/Xext
Alan Coopersmith 5fd3f7f4f2 Xext/sync: avoid null dereference in init_system_idle_counter()
Reported in #1817:

xwayland-24.1.6/redhat-linux-build/../Xext/sync.c:2835:33: acquire_memory: this call could return NULL
xwayland-24.1.6/redhat-linux-build/../Xext/sync.c:2837:28: danger: ‘priv’ could be NULL: unchecked value from [(30)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/29)
# 2835|           IdleCounterPriv *priv = malloc(sizeof(IdleCounterPriv));
# 2836|
# 2837|->         priv->value_less = priv->value_greater = NULL;
# 2838|           priv->deviceid = deviceid;
# 2839|

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/2072>
(cherry picked from commit 304d21854d)
2026-01-25 10:40:02 -08:00
..
2026-01-25 10:40:00 -08:00
2015-07-08 16:40:58 -04:00
2020-07-05 13:07:33 -07:00
2026-01-25 10:39:54 -08:00
2026-01-25 10:39:57 -08:00
2014-01-12 10:24:11 -08:00