xserver: Branch 'master'

Adam Jackson ajax at kemper.freedesktop.org
Thu Jun 21 13:30:55 UTC 2018


 glx/vndcmds.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 707d0f912b916e7546c4f7e7a5f7023a53e74615
Author: Vladimir Panteleev <git at thecybershadow.net>
Date:   Wed Jun 20 13:37:45 2018 +0000

    glx/vndcmds: Fix vendor hash table key size
    
    The keySize parameter of the hashing/comparison functions was
    incorrectly specified to be sizeof(void*), even though the keys of
    this hashtable are CARD32.
    
    Fixes address sanitizer failure on 64-bit builds.
    
    Reviewed-by: Adam Jackson <ajax at redhat.com>

diff --git a/glx/vndcmds.c b/glx/vndcmds.c
index 493e2bfc0..45b1eafaa 100644
--- a/glx/vndcmds.c
+++ b/glx/vndcmds.c
@@ -50,7 +50,7 @@ typedef struct GlxVendorPrivDispatchRec {
 static GlxServerDispatchProc dispatchFuncs[OPCODE_ARRAY_LEN] = {};
 static HashTable vendorPrivHash = NULL;
 static HtGenericHashSetupRec vendorPrivSetup = {
-    .keySize = sizeof(void*)
+    .keySize = sizeof(CARD32)
 };
 
 static int DispatchBadRequest(ClientPtr client)


More information about the xorg-commit mailing list