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>
This commit is contained in:
parent
0170e200f5
commit
707d0f912b
|
@ -50,7 +50,7 @@ typedef struct GlxVendorPrivDispatchRec {
|
||||||
static GlxServerDispatchProc dispatchFuncs[OPCODE_ARRAY_LEN] = {};
|
static GlxServerDispatchProc dispatchFuncs[OPCODE_ARRAY_LEN] = {};
|
||||||
static HashTable vendorPrivHash = NULL;
|
static HashTable vendorPrivHash = NULL;
|
||||||
static HtGenericHashSetupRec vendorPrivSetup = {
|
static HtGenericHashSetupRec vendorPrivSetup = {
|
||||||
.keySize = sizeof(void*)
|
.keySize = sizeof(CARD32)
|
||||||
};
|
};
|
||||||
|
|
||||||
static int DispatchBadRequest(ClientPtr client)
|
static int DispatchBadRequest(ClientPtr client)
|
||||||
|
|
Loading…
Reference in New Issue