[*] Prevent overflow into UNC root namespace of hostnames and volumes via path or filename overflow
This commit is contained in:
parent
92593be412
commit
6062a16d9c
@ -184,7 +184,8 @@ namespace Aurora::IO::FS
|
||||
#if defined(AURORA_IS_MODERNNT_DERIVED)
|
||||
if (result.size() >= MAX_PATH)
|
||||
{
|
||||
if (!AuStartsWith(result, "\\\\"))
|
||||
if (!AuStartsWith(result, "\\\\") &&
|
||||
result[1] == ':')
|
||||
{
|
||||
result = "\\\\?\\" + result;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user