mesa/src
Nicolai Hähnle cdc5bb81ff dri/common: clear the loaderPrivate pointer in driDestroyDrawable
The GLX specification says about glXDestroyPixmap:

    "The storage for the GLX pixmap will be freed when it is not current
     to any client."

We're not really following this language to the letter: some of the storage
is freed immediately (in particular, the dri3_drawable, which contains both
GLXDRIdrawable and loader_dri3_drawable). So we NULL out the pointers to
that freed storage; the previous patches added the corresponding NULL-pointer
checks.

This fixes memory corruption in piglit
./bin/glx-visuals-depth/stencil -pixmap -auto

Cc: 17.0 <mesa-stable@lists.freedesktop.org>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
(cherry picked from commit 7be0e602ed)
2017-02-10 11:06:59 +00:00
..
amd radv: fix shared memory load/stores. 2017-02-10 11:05:58 +00:00
compiler glsl: fix heap-buffer-overflow 2017-02-03 11:08:59 +00:00
egl egl: automake: include builddir prior to srcdir 2017-02-03 11:08:56 +00:00
gallium winsys/amdgpu: avoid potential segfault in amdgpu_bo_map() 2017-02-08 14:30:50 +00:00
gbm gbm: request correct version of the DRI2_FENCE extension 2016-11-22 15:56:44 +00:00
getopt Introduce .editorconfig 2016-08-31 17:06:54 -07:00
glx glx: guard swap-interval functions against destroyed drawables 2017-02-10 11:06:58 +00:00
gtest Introduce .editorconfig 2016-08-31 17:06:54 -07:00
hgl glapi/hgl: remove the final user of _glapi_check_table() 2016-10-06 15:03:46 +01:00
intel anv/pass: Store the depth-stencil attachment's last subpass index 2017-02-08 14:03:28 +00:00
loader loader: automake: include builddir prior to srcdir 2017-02-03 11:08:57 +00:00
mapi mapi: automake: include builddir prior to srcdir 2017-02-03 11:08:57 +00:00
mesa dri/common: clear the loaderPrivate pointer in driDestroyDrawable 2017-02-10 11:06:59 +00:00
util utils: really remove the __END_DECLS macro 2017-01-18 20:11:22 +00:00
vulkan vulkan/wsi: Lower the maximum image sizes 2017-02-03 11:08:56 +00:00
Makefile.am vulkan: automake: do not use EXTRA_DIST in a conditional 2017-01-18 13:41:32 +00:00
SConscript scons: put the generated git_sha1.h file in top-level src/ directory 2016-06-17 10:33:00 -06:00