llvm.org GIT mirror llvm / 6de91b3
llvm-undname: Fix an assert-on-invalid, found by oss-fuzz git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@358891 91177308-0d34-0410-b5e6-96231b3b80d8 Nico Weber 5 months ago
2 changed file(s) with 6 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
10391039 uint8_t C1, C2;
10401040
10411041 C1 = demangleCharLiteral(MangledName);
1042 if (Error)
1042 if (Error || MangledName.empty())
10431043 goto WCharLiteralError;
10441044 C2 = demangleCharLiteral(MangledName);
10451045 if (Error)
163163 ; CHECK-EMPTY:
164164 ; CHECK-NEXT: ??_C@_0601234567@abcdefghijklmnopqrtsuvwxyzABCDEFGHIJKLMNOPQRTSUVWXYZabcdefghijklmnopqrtsuvwxyzABCDEFGHIJKLMNOPQRTSUVWXYZabcdefghijklmnopqrtsuvwxyz
165165 ; CHECK-NEXT: error: Invalid mangled name
166
167 ??_C@_12@?z
168 ; CHECK-EMPTY:
169 ; CHECK-NEXT: ??_C@_12@?z
170 ; CHECK-NEXT: error: Invalid mangled name