mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-12 14:17:59 +00:00
"UNIX paths can contain non-ASCII characters, so Path::isValid() should not reject paths with such characters in them. The attached patch removes the check from Path::isValid()."
patch by Benjamin Kramer! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75421 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c8ca3ae27b
commit
0f55014430
@ -92,15 +92,7 @@ Path::isValid() const {
|
||||
// Check some obvious things
|
||||
if (path.empty())
|
||||
return false;
|
||||
else if (path.length() >= MAXPATHLEN)
|
||||
return false;
|
||||
|
||||
// Check that the characters are ascii chars
|
||||
size_t len = path.length();
|
||||
unsigned i = 0;
|
||||
while (i < len && isascii(path[i]))
|
||||
++i;
|
||||
return i >= len;
|
||||
return path.length() < MAXPATHLEN;
|
||||
}
|
||||
|
||||
bool
|
||||
|
Loading…
Reference in New Issue
Block a user