llvm.org GIT mirror llvm / 0907e8a
llvm-undname: Fix crash on invalid name in a template parameter pointer to member arg Found by oss-fuzz. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@358234 91177308-0d34-0410-b5e6-96231b3b80d8 Nico Weber 1 year, 7 months ago
2 changed file(s) with 7 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
21382138 SymbolNode *S = nullptr;
21392139 if (MangledName.startsWith('?')) {
21402140 S = parse(MangledName);
2141 if (Error)
2142 return nullptr;
21412143 memorizeIdentifier(S->Name->getUnqualifiedIdentifier());
21422144 }
21432145
9393 ; CHECK-EMPTY:
9494 ; CHECK-NEXT: ??8@8
9595 ; CHECK-NEXT: error: Invalid mangled name
96
97 ?B@?$?K$H?
98 ; CHECK-EMPTY:
99 ; CHECK-NEXT: ?B@?$?K$H?
100 ; CHECK-NEXT: error: Invalid mangled name