diff options
author | Matthieu Herrb <matthieu@herrb.eu> | 2021-11-16 23:38:46 +0100 |
---|---|---|
committer | Povilas Kanapickas <povilas@radix.lt> | 2021-12-19 20:01:04 +0000 |
commit | 5b8817a019845e1066c373022133985a0e2d718f (patch) | |
tree | 50d8fdf92c2b62ce6e0c9db51f63564ecfae4feb /include | |
parent | 35f0e1ade855c84e44f170f5147062d7d853ea64 (diff) |
Convert more funcs to use InternalEvent.
This fixes a crash when a DeviceEvent struct converted to
InteralEvent was beeing copied as InternalEvent (and thus
causing out of bounds reads) in ActivateGrabNoDelivery()
in events.c: 3876 *grabinfo->sync.event = *real_event;
Possible fix for https://gitlab.freedesktop.org/xorg/xserver/-/issues/1253
Signed-off-by: Matthieu Herrb <matthieu@herrb.eu>
Diffstat (limited to 'include')
-rw-r--r-- | include/dix.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/dix.h b/include/dix.h index 22daa510f..0dcd09b65 100644 --- a/include/dix.h +++ b/include/dix.h @@ -458,7 +458,7 @@ WindowHasNewCursor(WindowPtr /* pWin */ ); extern Bool CheckDeviceGrabs(DeviceIntPtr /* device */ , - DeviceEvent * /* event */ , + InternalEvent * /* event */ , WindowPtr /* ancestor */ ); extern void |