Skip to content

st_glsl_to_nir: fix potential use after free

Timothy Arceri requested to merge tarceri/mesa:fix_useafter_free into master

When updating the shader info used by GL for the API we must remember to make sure to restore the pointers to its own name and label strings. There are a number of ways in which the nir copy of these strings can be freed before GL is finished with them.

Fixes: 36be8c2f ("st/glsl_to_nir: use nir_shader_gather_info()") Closes:

Merge request reports