xserver: Branch 'master'

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Sun May 30 21:12:22 UTC 2021


 glx/vndcmds.c |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 2de5ded3c6d73c1672d2cb14d603cb23fcd477e5
Author: Niveditha Rau <niveditha.rau at oracle.com>
Date:   Tue May 11 15:08:41 2021 -0700

    glx: Check for byte-swapping in SetReplyHeader
    
    Check for the need to byte-swap when attempting to display
    GL apps between a big-endian server and little-endian client
    or vice versa.
    
    Fixes: https://gitlab.freedesktop.org/xorg/xserver/-/issues/1127

diff --git a/glx/vndcmds.c b/glx/vndcmds.c
index 21c6fef9e..d6d8719e1 100644
--- a/glx/vndcmds.c
+++ b/glx/vndcmds.c
@@ -92,6 +92,9 @@ static void SetReplyHeader(ClientPtr client, void *replyPtr)
     xGenericReply *rep = (xGenericReply *) replyPtr;
     rep->type = X_Reply;
     rep->sequenceNumber = client->sequence;
+    if (client->swapped) {
+	swaps(&rep->sequenceNumber);
+    }
     rep->length = 0;
 }
 


More information about the xorg-commit mailing list