mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-09 16:38:07 +02:00
present: Fix missing byte swaps in sproc_present_pixmap()
sproc_present_pixmap() was missing byte swaps the variable-length
xPresentNotify array after the fixed header was not
byte-swapped at all (each entry has window and serial CARD32 fields).
Fixes: a5ac3c8712 ("present: add missing byte swapping for various fields")
Assisted-by: Claude:claude-claude-opus-4-6
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/2202>
This commit is contained in:
parent
b243ef9bc2
commit
925edb6c9e
1 changed files with 3 additions and 0 deletions
|
|
@ -365,6 +365,9 @@ sproc_present_pixmap(ClientPtr client)
|
|||
swapll(&stuff->target_msc);
|
||||
swapll(&stuff->divisor);
|
||||
swapll(&stuff->remainder);
|
||||
|
||||
SwapRestL(stuff);
|
||||
|
||||
return (*proc_present_vector[stuff->presentReqType]) (client);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue