Skip to content

Commit faddaed

Browse files
authored
bpo-36352: Avoid hardcoded MAXPATHLEN size in getpath.c (GH-12423)
* Use Py_ARRAY_LENGTH() rather than hardcoded MAXPATHLEN in getpath.c. * Pass string length to functions modifying strings.
1 parent 5f9cf23 commit faddaed

4 files changed

Lines changed: 245 additions & 157 deletions

File tree

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Python initialization now fails with an error, rather than silently
2+
truncating paths, if a path is too long.

0 commit comments

Comments
 (0)