Skip to content

bpo-36352: Avoid hardcoded MAXPATHLEN size in getpath.c #12423

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Mar 19, 2019
Merged

bpo-36352: Avoid hardcoded MAXPATHLEN size in getpath.c #12423

merged 4 commits into from
Mar 19, 2019

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Mar 19, 2019

  • Use Py_ARRAY_LENGTH() rather than hardcoded MAXPATHLEN in getpath.c
  • Pass string length to functions modifying strings

https://bugs.python.org/issue36352

* Use Py_ARRAY_LENGTH() rather than hardcoded MAXPATHLEN in getpath.c
* Pass string length to functions modifying strings
@vstinner vstinner merged commit faddaed into python:master Mar 19, 2019
@vstinner vstinner deleted the joinpath branch March 19, 2019 01:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants