mesa/src
Tomeu Vizoso 5804d75b9c util/hash_table: Fix hashing in clears on 32-bit
Some hash functions (eg. key_u64_hash) will attempt to dereference the
key, causing an invalid access when passed DELETED_KEY_VALUE (0x1) or
FREED_KEY_VALUE (0x0).

When in 32-bit arch a 64-bit key value doesn't fit into a pointer, so
hash_table_u64 internally use a pointer to a struct containing the
64-bit key value.

Fix _mesa_hash_table_u64_clear() to handle the 32-bit case by creating a
temporary hash_key_u64 to pass to the hash function.

Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Suggested-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Cc: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Cc: Nicolai Hähnle <nicolai.haehnle@amd.com>
2019-08-08 07:42:52 +02:00
..
amd radv/gfx10: Enable DCC for storage images. 2019-08-07 02:13:07 +02:00
broadcom meson: replace libmesa_util with idep_mesautil 2019-08-03 00:08:37 +00:00
compiler nir/builder: Add nir_b2i 2019-08-06 18:03:10 -04:00
drm-shim meson: replace libmesa_util with idep_mesautil 2019-08-03 00:08:37 +00:00
egl util: add anon_file.h for all memfd/temp file usage 2019-08-07 22:57:55 +00:00
etnaviv etnaviv: fix a null pointer dereference 2019-08-05 15:31:43 +02:00
freedreno mesa: freedreno: Android.registers.mk: Fix up register xml.h file generation 2019-08-07 02:18:38 +00:00
gallium intel/perf: move perf-related constants to common location 2019-08-07 21:33:55 -07:00
gbm meson: replace last uses of libxmlconfig with idep_xmlconfig 2019-08-03 00:08:37 +00:00
getopt
glx glx: drop unnecessary pointer deref for function calls 2019-08-04 11:26:20 +01:00
gtest delete autotools .gitignore files 2019-04-29 21:17:19 +00:00
hgl haiku: Fix hgl dispatch build. Tested under meson/scons. 2019-04-02 16:06:00 -05:00
imgui imgui: bump imgui memory editor copy 2019-06-18 15:34:13 +00:00
intel anv: support GetSwapchainGrallocUsage2ANDROID for Android 2019-08-08 05:08:01 +00:00
loader mesa: Rename GLX_USE_TLS to USE_ELF_TLS. 2019-08-03 20:18:17 +02:00
mapi mesa: add EXT_shader_image_load_store glBindImageTextureEXT function 2019-08-06 17:40:53 -04:00
mesa st/mesa: eliminate unnecessary redirection 2019-08-07 21:33:56 -07:00
panfrost panfrost: Take into account a index_bias for glDrawElementsBaseVertex calls 2019-08-06 17:18:19 -07:00
util util/hash_table: Fix hashing in clears on 32-bit 2019-08-08 07:42:52 +02:00
vulkan meson: replace last uses of libxmlconfig with idep_xmlconfig 2019-08-03 00:08:37 +00:00
meson.build v3d: Introduce a DRM shim for calling out to the simulator. 2019-07-25 08:56:19 -07:00
SConscript