summaryrefslogtreecommitdiffstats
path: root/src/glsl/ir.h
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2014-05-23 14:59:33 -0600
committerBrian Paul <[email protected]>2014-05-28 15:06:07 -0600
commitf9cecca7a6e3d9ff231075381b88d179e153a5a4 (patch)
tree51a054b9e24579eb1aa36f4a304541d57d044cd8 /src/glsl/ir.h
parentbb9623a1a8b1884817422752c8dced9f084d4547 (diff)
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" <[email protected]> Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/glsl/ir.h')
0 files changed, 0 insertions, 0 deletions