savashn
|
62c8aadc4f
|
win: handle win32 namespaces
This commit introduces a comprehensive path parser that handles:
- Win32 file namespace: \?\C:\path
- Win32 device namespace: \.\C:
- NT namespace: \??\C:\path
- UNC paths: \server\share and \?\UNC\server\share
- Volume GUID paths: \?\Volume{...}
- Special paths: \?\GLOBALROOT\...
The implementation also adds validation for:
- NULL and empty input strings
- Path length limits (32767 characters for Win32 namespace)
- Forward slash rejection in Win32 namespaces (which don't support normalization)
- Explicit rejection of GLOBALROOT paths
|
2025-10-17 23:02:10 +03:00 |
|