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>
This commit is contained in:
Alan Coopersmith 2024-03-21 18:08:35 -07:00
parent 4e53612347
commit e6573baa7d

View File

@ -2319,6 +2319,7 @@ SProcSyncCreateFence(ClientPtr client)
REQUEST(xSyncCreateFenceReq); REQUEST(xSyncCreateFenceReq);
swaps(&stuff->length); swaps(&stuff->length);
REQUEST_SIZE_MATCH(xSyncCreateFenceReq); REQUEST_SIZE_MATCH(xSyncCreateFenceReq);
swapl(&stuff->d);
swapl(&stuff->fid); swapl(&stuff->fid);
return ProcSyncCreateFence(client); return ProcSyncCreateFence(client);