Enrico Weigelt, metux IT consult
f15523a20d
Xi: fix NULL pointer dereference in ProcXIChangeCursor
...
When a client sent XIChangeCursor with win == None, the window was never
looked up and pWin stayed NULL, after which "pWin == pWin->drawable.pScreen->
root" (or ChangeWindowDeviceCursor()) dereferenced NULL and crashed the
server. Any client with a valid master-pointer device could trigger this.
A valid window is required for this request, so look the window up
unconditionally; dixLookupWindow() rejects None with BadWindow.
Fixes: 95e1a88050 ("Xi: Adding ChangeDeviceCursor request")
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-06-16 07:44:45 +02:00
..
allowev.c
Xi: ProcXAllowDeviceEvents(): declare variables where needed
2026-05-01 18:46:19 +02:00
chgdctl.c
Xi: ProcXChangeDeviceControl(): declare variables where needed
2026-05-08 17:18:13 +02:00
chgfctl.c
Xi: use REQUEST_HEAD_STRUCT and REQUEST_FIELD_* macros
2026-02-04 12:52:48 +01:00
chgkbd.c
Xi: use REQUEST_HEAD_STRUCT and REQUEST_FIELD_* macros
2026-02-04 12:52:48 +01:00
chgkmap.c
Xi: use REQUEST_HEAD_STRUCT and REQUEST_FIELD_* macros
2026-02-04 12:52:48 +01:00
chgprop.c
Xi: use REQUEST_HEAD_STRUCT and REQUEST_FIELD_* macros
2026-02-04 12:52:48 +01:00
chgptr.c
Xi: use REQUEST_HEAD_STRUCT and REQUEST_FIELD_* macros
2026-02-04 12:52:48 +01:00
chgptr.h
Xi: fix missing includes
2026-04-24 13:59:57 +02:00
closedev.c
Xi: use REQUEST_HEAD_STRUCT and REQUEST_FIELD_* macros
2026-02-04 12:52:48 +01:00
devbell.c
Xi: use REQUEST_HEAD_STRUCT and REQUEST_FIELD_* macros
2026-02-04 12:52:48 +01:00
exevents.c
Xi/exevents: fix off-by-one in UpdateDeviceState valuator bounds check
2026-05-21 18:36:26 +02:00
exglobals.h
Xi: helper for private structure retrieval
2025-09-10 13:41:47 +02:00
extinit.c
Xi: fail if we can't assign device names
2026-04-30 19:58:45 +02:00
getbmap.c
Xi: use REQUEST_HEAD_STRUCT and REQUEST_FIELD_* macros
2026-02-04 12:52:48 +01:00
getdctl.c
Xi: use REQUEST_HEAD_STRUCT and REQUEST_FIELD_* macros
2026-02-04 12:52:48 +01:00
getfctl.c
Xi: use new X_REPLY_FIELD_* macros
2026-04-28 17:30:25 +02:00
getfocus.c
Xi: use new X_REPLY_FIELD_* macros
2026-04-28 17:30:25 +02:00
getkmap.c
Xi: use REQUEST_HEAD_STRUCT and REQUEST_FIELD_* macros
2026-02-04 12:52:48 +01:00
getmmap.c
Xi: use REQUEST_HEAD_STRUCT and REQUEST_FIELD_* macros
2026-02-04 12:52:48 +01:00
getprop.c
Xi: ProcXGetDeviceDontPropagateList(): use X_REQUEST_* macros
2026-05-08 17:27:05 +02:00
getprop.h
Xi: fix missing includes
2026-04-24 13:59:57 +02:00
getselev.c
Xi: ProcXGetSelectedExtensionEvents(): use X_REQUEST_* macros
2026-05-08 14:06:35 +02:00
getvers.c
Xi: use new X_REPLY_FIELD_* macros
2026-04-28 17:30:25 +02:00
grabdev.c
Xi: use REQUEST_HEAD_STRUCT and REQUEST_FIELD_* macros
2026-02-04 12:52:48 +01:00
grabdev.h
Xi: fix missing includes
2026-04-24 13:59:57 +02:00
grabdevb.c
Xi: use REQUEST_HEAD_STRUCT and REQUEST_FIELD_* macros
2026-02-04 12:52:48 +01:00
grabdevk.c
Xi: use REQUEST_HEAD_STRUCT and REQUEST_FIELD_* macros
2026-02-04 12:52:48 +01:00
gtmotion.c
Xi: use new X_REPLY_FIELD_* macros
2026-04-28 17:30:25 +02:00
handlers.h
Xi: inline SProcXISelectEvents() and SProcXIGetSelectedEvents()
2025-10-30 09:44:41 +01:00
listdev.c
Xi: zero device/pointer/state reply buffers
2026-06-12 18:55:16 +02:00
meson.build
treewide: remove "lib" prefix in static_library names (meson)
2025-07-03 12:01:52 +02:00
opendev.c
Xi: use REQUEST_HEAD_STRUCT and REQUEST_FIELD_* macros
2026-02-04 12:52:48 +01:00
queryst.c
Xi: zero device/pointer/state reply buffers
2026-06-12 18:55:16 +02:00
selectev.c
Xi: use REQUEST_HEAD_STRUCT and REQUEST_FIELD_* macros
2026-02-04 12:52:48 +01:00
sendexev.c
Xi: use REQUEST_HEAD_STRUCT and REQUEST_FIELD_* macros
2026-02-04 12:52:48 +01:00
setbmap.c
Xi: use REQUEST_HEAD_STRUCT and REQUEST_FIELD_* macros
2026-02-04 12:52:48 +01:00
setdval.c
Xi: use REQUEST_HEAD_STRUCT and REQUEST_FIELD_* macros
2026-02-04 12:52:48 +01:00
setfocus.c
Xi: use REQUEST_HEAD_STRUCT and REQUEST_FIELD_* macros
2026-02-04 12:52:48 +01:00
setmmap.c
Xi: use REQUEST_HEAD_STRUCT and REQUEST_FIELD_* macros
2026-02-04 12:52:48 +01:00
setmode.c
Xi: use REQUEST_HEAD_STRUCT and REQUEST_FIELD_* macros
2026-02-04 12:52:48 +01:00
stubs.c
ungrdev.c
Xi: use REQUEST_HEAD_STRUCT and REQUEST_FIELD_* macros
2026-02-04 12:52:48 +01:00
ungrdevb.c
Xi: use REQUEST_HEAD_STRUCT and REQUEST_FIELD_* macros
2026-02-04 12:52:48 +01:00
ungrdevk.c
Xi: use REQUEST_HEAD_STRUCT and REQUEST_FIELD_* macros
2026-02-04 12:52:48 +01:00
xiallowev.c
Xi: use REQUEST_HEAD_STRUCT and REQUEST_FIELD_* macros
2026-02-04 12:52:48 +01:00
xibarriers.c
Xi: rename "screen" fields to "pScreen"
2026-02-10 10:32:35 +01:00
xibarriers.h
Xi: consolidate request handler prototypes
2025-09-12 09:25:29 +02:00
xichangecursor.c
Xi: fix NULL pointer dereference in ProcXIChangeCursor
2026-06-16 07:44:45 +02:00
xichangehierarchy.c
Xi/xichangehierarchy: reject zero-length hierarchy change entries
2026-06-05 14:59:01 +02:00
xichangehierarchy.h
Xi: fix missing includes
2026-04-24 13:59:57 +02:00
xigetclientpointer.c
Xi: use new X_REPLY_FIELD_* macros
2026-04-28 17:30:25 +02:00
xigrabdev.c
Xi: xigrabdev: fix FTBS on *BSD
2026-05-06 19:18:27 +02:00
xipassivegrab.c
Xi: add missing gesture grab type checks in ProcXIPassiveUngrabDevice
2026-05-21 20:32:43 +02:00
xiproperty.c
Xi: Swap property data in ProcXChangeDeviceProperty/ProcXIChangeProperty
2026-06-05 16:32:25 +02:00
xiproperty.h
Xi: consolidate request handler prototypes
2025-09-12 09:25:29 +02:00
xiquerydevice.c
Xi: zero device/pointer/state reply buffers
2026-06-12 18:55:16 +02:00
xiquerydevice.h
Xi: fix missing includes
2026-04-24 13:59:57 +02:00
xiquerypointer.c
Xi: zero device/pointer/state reply buffers
2026-06-12 18:55:16 +02:00
xiqueryversion.c
Xi: use new X_REPLY_FIELD_* macros
2026-04-28 17:30:25 +02:00
xiselectev.c
Xi: use new X_REPLY_FIELD_* macros
2026-04-28 17:30:25 +02:00
xisetclientpointer.c
Xi: use REQUEST_HEAD_STRUCT and REQUEST_FIELD_* macros
2026-02-04 12:52:48 +01:00
xisetdevfocus.c
Xi: use new X_REPLY_FIELD_* macros
2026-04-28 17:30:25 +02:00
XIstubs.h
Xi: fix missing includes
2026-04-24 13:59:57 +02:00
xiwarppointer.c
Xi: use REQUEST_HEAD_STRUCT and REQUEST_FIELD_* macros
2026-02-04 12:52:48 +01:00