Skip to content

Commit 8292684

Browse files
SAY-5arcady-lunarg
authored andcommitted
iomapper: guard uniformVarMap before dereferencing it in uniform validation
Signed-off-by: Sai Asish Y <say.apm35@gmail.com>
1 parent 1af40db commit 8292684

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

glslang/MachineIndependent/iomapper.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,7 @@ struct TSymbolValidater
647647
} else if (base->getQualifier().isUniformOrBuffer() && !base->getQualifier().isPushConstant()) {
648648
// validate uniform type;
649649
for (int i = 0; i < EShLangCount; i++) {
650-
if (i != currentStage && outVarMaps[i] != nullptr) {
650+
if (i != currentStage && uniformVarMap[i] != nullptr) {
651651
auto ent2 = uniformVarMap[i]->find(name);
652652
if (ent2 != uniformVarMap[i]->end()) {
653653
ent2->second.symbol->getType().appendMangledName(mangleName2);

0 commit comments

Comments
 (0)