diff options
author | Vladimir Panteleev <git@thecybershadow.net> | 2018-06-20 13:37:45 +0000 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2018-08-01 11:01:37 -0400 |
commit | 38835d1d8f613c3553149fc05e61a8bb9b0aef48 (patch) | |
tree | 10459df7453f8b25916475b929e97a5db72c8291 /glx | |
parent | d7220428daee26acecb6ae9771e255c801c83572 (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>
(cherry picked from commit 707d0f912b916e7546c4f7e7a5f7023a53e74615)
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) |