mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-04 11:17:31 +00:00
Fix what seems like a clear buffer overflow, noticed by cppcheck.
llvm-svn: 108629
This commit is contained in:
parent
72c0967ce7
commit
0f6415ef75
@ -35,7 +35,7 @@ GetLowerCasePartDefine(void) {
|
||||
}
|
||||
|
||||
std::string LowerCase;
|
||||
for (unsigned i = 0; i <= Partname.size(); i++) {
|
||||
for (unsigned i = 0; i < Partname.size(); i++) {
|
||||
LowerCase.push_back(std::tolower(Partname[i]));
|
||||
}
|
||||
|
||||
@ -52,7 +52,7 @@ GetUpperCasePartDefine(void) {
|
||||
}
|
||||
|
||||
std::string UpperCase;
|
||||
for (unsigned i = 0; i <= Partname.size(); i++) {
|
||||
for (unsigned i = 0; i < Partname.size(); i++) {
|
||||
UpperCase.push_back(std::toupper(Partname[i]));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user