mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-05 02:58:06 +02:00
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 707d0f912b)
This commit is contained in:
parent
d7220428da
commit
38835d1d8f
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue