mesa/src
Iago Toral Quiroga 98141366f9 glsl: avoid accessing invalid memory after get_variable_being_redeclared()
After get_variable_being_redeclared() has been called, it is no longer
safe to access the original variable pointer, since its memory might have
been freed.

Since callers of this function should only be accessing the variable pointer
returned by the function, avoid potential bugs by re-assigning the
original variable pointer to the result of the function call,
making it impossible for the remaining code to access an invalid variable
pointer.

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
2017-09-14 11:23:26 +02:00
..
amd radv: dump the list of enabled options when a hang occured 2017-09-14 10:37:57 +02:00
broadcom broadcom/genxml: Add V3D 3.3 packet definitions. 2017-08-18 12:54:13 -07:00
compiler glsl: avoid accessing invalid memory after get_variable_being_redeclared() 2017-09-14 11:23:26 +02:00
egl egl+glx: turn LIBGL_DRI3_DISABLE into a boolean 2017-09-12 13:53:12 +01:00
gallium radeonsi: move si_get_wave_info() to AMD common code 2017-09-14 10:37:57 +02:00
gbm gbm: turn GBM_ALWAYS_SOFTWARE into a boolean 2017-09-12 13:53:11 +01:00
getopt Introduce .editorconfig 2016-08-31 17:06:54 -07:00
glx glx: turn LIBGL_NO_DRAWARRAYS into a boolean 2017-09-12 13:53:12 +01:00
gtest gtest: Update to 1.8.0. 2017-01-20 11:40:52 -08:00
hgl glapi/hgl: remove the final user of _glapi_check_table() 2016-10-06 15:03:46 +01:00
intel i965: Add an INTEL_DEBUG=submit option for printing batch statistics. 2017-09-13 13:52:38 -07:00
loader loader/dri3: Make sure we invalidate a drawable on size change 2017-09-07 12:43:29 +02:00
mapi mapi/gen: remove shebang from the marshal generator scripts 2017-08-26 11:20:08 +01:00
mesa dri/radeon: use ARRAY_SIZE macro 2017-09-14 09:56:00 +01:00
util util/build_id: Include <dlfcn.h> 2017-09-13 12:43:42 -07:00
vulkan vulkan/util: Add a vk_zalloc helper 2017-08-28 18:35:33 -07:00
Makefile.am build: Convert git_sha1_gen script to Python (part2). 2017-08-01 16:33:55 +01:00
SConscript build: Convert git_sha1_gen script to Python. 2017-08-01 15:24:39 +01:00