Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[3.8] bpo-38322: Fix gotlandmark() of PC/getpathp.c #16490

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 1 commit into from
Sep 30, 2019
Merged

[3.8] bpo-38322: Fix gotlandmark() of PC/getpathp.c #16490

merged 1 commit into from
Sep 30, 2019

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Sep 30, 2019

Write the filename into a temporary buffer instead of reusing prefix.
The problem is that join() modifies prefix inplace. If prefix is not
normalized, join() can make prefix shorter and so gotlandmark()
does modify prefix instead of returning it unmodified.

https://bugs.python.org/issue38322

Write the filename into a temporary buffer instead of reusing prefix.
The problem is that join() modifies prefix inplace. If prefix is not
normalized, join() can make prefix shorter and so gotlandmark()
does modify prefix instead of returning it unmodified.
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