Skip to content

bpo-38322: Fix gotlandmark() of PC/getpathp.c - #16489

Merged
vstinner merged 1 commit into
python:masterfrom
vstinner:gotlandmark
Sep 30, 2019
Merged

bpo-38322: Fix gotlandmark() of PC/getpathp.c#16489
vstinner merged 1 commit into
python:masterfrom
vstinner:gotlandmark

Conversation

@vstinner

@vstinner vstinner commented Sep 30, 2019

Copy link
Copy Markdown
Member

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.
@vstinner
vstinner requested a review from a team as a code owner September 30, 2019 12:28
@vstinner
vstinner merged commit dec3971 into python:master Sep 30, 2019
@vstinner
vstinner deleted the gotlandmark branch September 30, 2019 12:49
jacobneiltaylor pushed a commit to jacobneiltaylor/cpython that referenced this pull request Dec 5, 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.
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