mirror of
https://github.com/curl/curl.git
synced 2026-04-15 00:01:41 +03:00
tool_doswin: increase allowable length of path sanitizer
- Use 32767-1 instead of PATH_MAX-1 (260-1) as the maximum allowable length of a path in Windows. Prior to this change the path sanitizer in Windows used 32767-1 as the maximum length only for paths that had the "\\" prefix like "\\?\longpath". Since then we added some workarounds to open longer paths without "\\?\" prefix by normalizing the path and adding that prefix, and the sanitizer is called before the prefix is added. Bug: https://github.com/curl/curl/issues/20044 Reported-by: Viktor Szakats Closes https://github.com/curl/curl/pull/20046
This commit is contained in:
parent
52ac8104e1
commit
1068d048ec
2 changed files with 40 additions and 32 deletions
|
|
@ -178,9 +178,6 @@ static CURLcode test_tool1604(const char *arg)
|
|||
{ "COM56", 0,
|
||||
"COM56", SANITIZE_ERR_OK
|
||||
},
|
||||
/* At the moment we expect a maximum path length of 259. I assume MS-DOS
|
||||
has variable max path lengths depending on compiler that are shorter
|
||||
so currently these "good" truncate tests will not run on MS-DOS */
|
||||
{ "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
|
||||
"BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB"
|
||||
"CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue