llvm.org GIT mirror llvm / 9fe9eec
llvm-undname: Fix oss-fuzz-foudn crash-on-invalid with incomplete special table nodes git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@358367 91177308-0d34-0410-b5e6-96231b3b80d8 Nico Weber 1 year, 7 months ago
2 changed file(s) with 14 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
275275 SpecialTableSymbolNode *STSN = Arena.alloc();
276276 STSN->Name = QN;
277277 bool IsMember = false;
278 if (MangledName.empty()) {
279 Error = true;
280 return nullptr;
281 }
278282 char Front = MangledName.popFront();
279283 if (Front != '6' && Front != '7') {
280284 Error = true;
118118 ; CHECK-EMPTY:
119119 ; CHECK-NEXT: ?foo@?$?_
120120 ; CHECK-NEXT: error: Invalid mangled name
121
122 ??_R4
123 ; CHECK-EMPTY:
124 ; CHECK-NEXT: ??_R4
125 ; CHECK-NEXT: error: Invalid mangled name
126
127 ??_R4foo@@
128 ; CHECK-EMPTY:
129 ; CHECK-NEXT: ??_R4foo@@
130 ; CHECK-NEXT: error: Invalid mangled name