]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-36352: Avoid hardcoded MAXPATHLEN size in getpath.c (GH-12423)
authorVictor Stinner <vstinner@redhat.com>
Tue, 19 Mar 2019 01:58:14 +0000 (02:58 +0100)
committerGitHub <noreply@github.com>
Tue, 19 Mar 2019 01:58:14 +0000 (02:58 +0100)
commitfaddaedd05ca81a9fed3f315e7bc8dcf455824a2
tree90679ab39bba190bd5cfa055ae3f564255d29495
parent5f9cf23502febe0eb3bc02e45c7d2bfc79424757
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.
Misc/NEWS.d/next/Core and Builtins/2019-03-19-02-36-40.bpo-36352.qj2trz.rst [new file with mode: 0644]
Modules/getpath.c
Python/fileutils.c
Python/pathconfig.c