llvm.org GIT mirror llvm / 1e9ed47
[ItaniumDemangle] Fix a exponential string copying bug This is a port of libcxxabi's r304113. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@304114 91177308-0d34-0410-b5e6-96231b3b80d8 Erik Pilkington 2 years ago
1 changed file(s) with 3 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
25242524 ++p0;
25252525 break;
25262526 }
2527 if (!isalpha(*p0) && !isdigit(*p0) && *p0 != '_') {
2528 return std::string();
2529 }
25272530 }
25282531 return std::string(p0, pe);
25292532 }