mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-27 05:50:06 +01:00
dix: null out dummyDev, otherwise Xephyr dereferences random pointers.
SendEventToAllWindow eventually causes a IsInterferingGrab(), which attempts to dereference dev->deviceGrab.grab.
This commit is contained in:
parent
150c2f55a5
commit
62c1a32976
1 changed files with 2 additions and 1 deletions
|
|
@ -376,7 +376,8 @@ ActivateDevice(DeviceIntPtr dev)
|
|||
ev.time = currentTime.milliseconds;
|
||||
ev.devchange = DeviceAdded;
|
||||
ev.deviceid = dev->id;
|
||||
dummyDev.id = 0;
|
||||
|
||||
memset(&dummyDev, 0, sizeof(DeviceIntRec));
|
||||
SendEventToAllWindows(&dummyDev, DevicePresenceNotifyMask,
|
||||
(xEvent *) &ev, 1);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue