diff options
author | Victor Stinner <vstinner@python.org> | 2019-09-30 12:49:34 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-30 12:49:34 (GMT) |
commit | dec39716ca93ee2e8d9b94915ece33014eb58e9e (patch) | |
tree | fe3ddadba7989368b2e149c5e57331af8fb6d36b /Python/mysnprintf.c | |
parent | 89f8177dcfdbcf17c85bb6998c946c9f42bf6e27 (diff) | |
download | cpython-dec39716ca93ee2e8d9b94915ece33014eb58e9e.zip cpython-dec39716ca93ee2e8d9b94915ece33014eb58e9e.tar.gz cpython-dec39716ca93ee2e8d9b94915ece33014eb58e9e.tar.bz2 |
bpo-38322: Fix gotlandmark() of PC/getpathp.c (GH-16489)
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.
Diffstat (limited to 'Python/mysnprintf.c')
0 files changed, 0 insertions, 0 deletions