summaryrefslogtreecommitdiffstats
path: root/Include/internal
diff options
context:
space:
mode:
authorFinn Womack <flan313@gmail.com>2023-08-15 15:33:00 (GMT)
committerGitHub <noreply@github.com>2023-08-15 15:33:00 (GMT)
commit09322724319d4c23195300b222a1c0ea720af56b (patch)
treebe1ef6bd2798a63e4a9516e5cedeff57f92de670 /Include/internal
parent607f18c89456cdc9064e27f86a7505e011209757 (diff)
downloadcpython-09322724319d4c23195300b222a1c0ea720af56b.zip
cpython-09322724319d4c23195300b222a1c0ea720af56b.tar.gz
cpython-09322724319d4c23195300b222a1c0ea720af56b.tar.bz2
gh-106242: Fix path truncation in os.path.normpath (GH-106816)
Diffstat (limited to 'Include/internal')
-rw-r--r--Include/internal/pycore_fileutils.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Include/internal/pycore_fileutils.h b/Include/internal/pycore_fileutils.h
index daa32c0..cb5ac76 100644
--- a/Include/internal/pycore_fileutils.h
+++ b/Include/internal/pycore_fileutils.h
@@ -260,6 +260,7 @@ extern int _Py_add_relfile(wchar_t *dirname,
size_t bufsize);
extern size_t _Py_find_basename(const wchar_t *filename);
PyAPI_FUNC(wchar_t*) _Py_normpath(wchar_t *path, Py_ssize_t size);
+extern wchar_t *_Py_normpath_and_size(wchar_t *path, Py_ssize_t size, Py_ssize_t *length);
// The Windows Games API family does not provide these functions
// so provide our own implementations. Remove them in case they get added