summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2024-03-21 18:08:35 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2024-03-22 17:33:23 -0700
commite6573baa7d99a77f44229b9a96a41bbda57e2387 (patch)
tree8f3903d09f5a71635b5814a16d81502769291425
parent4e53612347613a930bcd43d67fd9fe49f07ee4c2 (diff)
Xext: SProcSyncCreateFence needs to swap drawable id too
Otherwise it causes the server to return BadDrawable giving a byte-swapped resource id instead of the real id the client sent. Reported-by: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=69762 Fixes: 397dfd9f8 ("Create/Destroy/Trigger/Reset/Query Fence Sync objs") Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1437>
-rw-r--r--Xext/sync.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Xext/sync.c b/Xext/sync.c
index 262f3f3c0..8da5bf616 100644
--- a/Xext/sync.c
+++ b/Xext/sync.c
@@ -2319,6 +2319,7 @@ SProcSyncCreateFence(ClientPtr client)
REQUEST(xSyncCreateFenceReq);
swaps(&stuff->length);
REQUEST_SIZE_MATCH(xSyncCreateFenceReq);
+ swapl(&stuff->d);
swapl(&stuff->fid);
return ProcSyncCreateFence(client);