diff options
author | Vladimir Panteleev <git@thecybershadow.net> | 2018-06-20 13:37:45 +0000 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2018-06-21 09:28:41 -0400 |
commit | 707d0f912b916e7546c4f7e7a5f7023a53e74615 (patch) | |
tree | cf37488b8b31fae47eec0b4f43b64881673d759e /glx | |
parent | 0170e200f546e4b3430bd07a70551436cf44b0be (diff) |
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@redhat.com>
Diffstat (limited to 'glx')
-rw-r--r-- | glx/vndcmds.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) |