summaryrefslogtreecommitdiffstats
path: root/src/glsl/ir_hierarchical_visitor.h
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2014-05-23 14:59:33 -0600
committerBrian Paul <brianp@vmware.com>2014-05-28 15:06:07 -0600
commitf9cecca7a6e3d9ff231075381b88d179e153a5a4 (patch)
tree51a054b9e24579eb1aa36f4a304541d57d044cd8 /src/glsl/ir_hierarchical_visitor.h
parentbb9623a1a8b1884817422752c8dced9f084d4547 (diff)
downloadexternal_mesa3d-f9cecca7a6e3d9ff231075381b88d179e153a5a4.zip
external_mesa3d-f9cecca7a6e3d9ff231075381b88d179e153a5a4.tar.gz
external_mesa3d-f9cecca7a6e3d9ff231075381b88d179e153a5a4.tar.bz2
glsl: fix use-after free bug/crash in ast_declarator_list::hir()
The call to get_variable_being_redeclared() may delete 'var' so we can't reference var->name afterward. We fix that by examining the var's name before making that call. Fixes valgrind warnings and possible crash when running the piglit tests/spec/glsl-1.30/execution/clipping/vs-clip-distance-in-param.shader_test test (and probably others). Cc: "10.1 10.2" <mesa-stable@lists.freedesktop.org> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Diffstat (limited to 'src/glsl/ir_hierarchical_visitor.h')
0 files changed, 0 insertions, 0 deletions