llvm.org GIT mirror llvm / c8d28c5
llvm-undname: Fix a crash-on-invalid Found by oss-fuzz, fixes issue 13260 on oss-fuzz. Differential Revision: https://reviews.llvm.org/D60207 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@357649 91177308-0d34-0410-b5e6-96231b3b80d8 Nico Weber 1 year, 7 months ago
2 changed file(s) with 6 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
19481948 for (uint64_t I = 0; I < Rank; ++I) {
19491949 uint64_t D = 0;
19501950 std::tie(D, IsNegative) = demangleNumber(MangledName);
1951 if (IsNegative) {
1951 if (Error || IsNegative) {
19521952 Error = true;
19531953 return nullptr;
19541954 }
2323 ; CHECK-EMPTY:
2424 ; CHECK-NEXT: ??0@
2525 ; CHECK-NEXT: error: Invalid mangled name
26
27 ? @@ YC@
28 ; CHECK-EMPTY:
29 ; CHECK-NEXT: ? @@ YC@
30 ; CHECK-NEXT: error: Invalid mangled name