xserver/include
Povilas Kanapickas b713e717c3 dix: Correctly save replayed event into GrabInfoRec
When processing events we operate on InternalEvent pointers. They may
actually refer to a an instance of DeviceEvent, GestureEvent or any
other event that comprises the InternalEvent union. This works well in
practice because we always look into event type before doing anything,
except in the case of copying the event.

*dst_event = *src_event would copy whole InternalEvent event and would
cause out of bounds read in case the pointed to event was not
InternalEvent but e.g. DeviceEvent.

This regression has been introduced in
23a8b62d34.

Fixes https://gitlab.freedesktop.org/xorg/xserver/-/issues/1261

Signed-off-by: Povilas Kanapickas <povilas@radix.lt>
(cherry picked from commit 6ef5c05728)
2022-07-01 15:15:15 +03:00
..
.gitignore Fix spelling/wording issues 2020-07-05 13:07:33 -07:00
Makefile.am Makefile.am: Add missing meson build files to release tarball 2021-11-06 21:22:23 +02:00
XIstubs.h
Xprintf.h
Xserver.d dtrace: Move Xserver.d from dix/ to include/ 2019-08-27 17:38:54 -04:00
busfault.h
callback.h
client.h
closestr.h
closure.h
colormap.h
colormapst.h
cursor.h
cursorstr.h
dbus-core.h
displaymode.h
dix-config-apple-verbatim.h
dix-config.h.in xquartz: Remove check for libdispatch now that we don't support pre-SnowLeopard 2021-02-01 16:21:39 -08:00
dix.h Convert more funcs to use InternalEvent. 2021-12-19 23:33:28 +02:00
dixaccess.h
dixevents.h
dixfont.h
dixfontstr.h
dixgrabs.h xi: Implement grab support for new gesture event types 2021-05-30 13:26:32 +03:00
dixstruct.h
eventconvert.h dix: Add new internal event enums for gesture events 2021-05-30 13:26:30 +03:00
events.h xi: Implement internal gesture event struct 2021-05-30 13:26:31 +03:00
eventstr.h xi: Implement internal gesture event struct 2021-05-30 13:26:31 +03:00
exevents.h xi: Implement grab support for new gesture event types 2021-05-30 13:26:32 +03:00
extension.h
extinit.h
extnsionst.h
fourcc.h Consolidate fourcc.h 2020-09-15 11:43:16 +02:00
gc.h
gcstruct.h
globals.h
glx_extinit.h
glxvndabi.h Fix spelling/wording issues 2020-07-05 13:07:33 -07:00
hotplug.h
input.h dix: Correctly save replayed event into GrabInfoRec 2022-07-01 15:15:15 +03:00
inputstr.h dix: Implement internal gesture state handling 2021-05-30 13:26:39 +03:00
inpututils.h Implement gesture processing logic 2021-05-30 13:26:42 +03:00
list.h
meson.build meson: Correctly set DDXOSVERRORF and DDXBEFORERESET on xwin 2021-12-04 18:05:29 +02:00
misc.h include: Increase the number of max. input devices to 256. 2019-11-09 23:05:13 -05:00
miscstruct.h
nonsdk_extinit.h
opaque.h dix: Remove -to option to set the default connection timeout 2019-10-30 16:17:04 +00:00
optionstr.h
os.h os: Ensure sigset_t is provided when compiling for MinGW 2019-05-18 14:59:38 +00:00
pixmap.h xserver/output: rename some badly named variables/APIs. 2020-07-10 06:17:44 +10:00
pixmapstr.h xserver/output: rename some badly named variables/APIs. 2020-07-10 06:17:44 +10:00
privates.h Fix compilation with windows.h from latest w32api 2021-08-31 16:56:28 +00:00
probes.h dtrace: s/#if/#ifdef/ for XSERVER_DTRACE 2019-08-27 17:38:59 -04:00
property.h Mark the dixChangeWindowProperty() value argument as const 2021-07-30 08:36:35 +00:00
propertyst.h
protocol-versions.h xfixes: Add ClientDisconnectMode 2021-06-07 17:28:05 +02:00
ptrveloc.h
region.h
regionstr.h
registry.h
resource.h dix: Fix undefined shift in HashResourceID 2019-10-15 14:06:21 -04:00
rgb.h
screenint.h
scrnintstr.h xserver/output: rename some badly named variables/APIs. 2020-07-10 06:17:44 +10:00
selection.h
servermd.h
swaprep.h
swapreq.h
systemd-logind.h xf86/logind: Fix compilation error when built without logind/platform bus 2021-12-20 17:09:17 +01:00
validate.h
version-config.h.in
vidmodestr.h
window.h
windowstr.h dix: Remove WindowRec::backStorage 2019-04-12 21:53:03 +00:00
xkb-config.h.in
xkbfile.h
xkbrules.h
xkbsrv.h
xkbstr.h Fix spelling/wording issues 2020-07-05 13:07:33 -07:00
xorg-config.h.in
xorg-config.h.meson.in
xorg-server.h.in
xorg-server.h.meson.in
xserver-properties.h
xserver_poll.h
xsha1.h
xwin-config.h.in
xwin-config.h.meson.in