Allocate empty function name in the string pool.
authorDan Sinclair <dsinclair@chromium.org>
Wed, 20 Feb 2019 21:30:35 +0000 (16:30 -0500)
committerDan Sinclair <dsinclair@chromium.org>
Wed, 20 Feb 2019 21:32:49 +0000 (16:32 -0500)
commit756bfd0ad16f4d30c0844653461edc6afd7ad0e7
tree8b2d4983f0dcb5716ade27e160331a0a47f9e17d
parent58d6905ea01f7c44652eb082d26b662ca811df25
Allocate empty function name in the string pool.

Inside the grammar for function_identifier if the .function is null an
empty function name is allocated. This is allocated on the stack and
passed into TFunction as a pointer. TFunction just stores that pointer.

Later, when we access the name we will receive an invalid usage of a
stack allocated variable. This CL switches to using NewPoolTStringn for
the empty function name.
glslang/MachineIndependent/glslang.y
glslang/MachineIndependent/glslang_tab.cpp