diff options
author | Steve Dower <steve.dower@python.org> | 2023-08-15 17:07:52 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-15 17:07:52 (GMT) |
commit | ccf81e1088c25a9f4464e478dc3b5c03ed7ee63b (patch) | |
tree | e20a6658cef218078316144b6e7644fa4ba2fe18 /Include | |
parent | db4400b5b28dc17c9eac47780402c0b812703358 (diff) | |
download | cpython-ccf81e1088c25a9f4464e478dc3b5c03ed7ee63b.zip cpython-ccf81e1088c25a9f4464e478dc3b5c03ed7ee63b.tar.gz cpython-ccf81e1088c25a9f4464e478dc3b5c03ed7ee63b.tar.bz2 |
[3.11] gh-106242: Fix path truncation in os.path.normpath (GH-106816) (#107982)
Co-authored-by: Finn Womack <flan313@gmail.com>
Diffstat (limited to 'Include')
-rw-r--r-- | Include/internal/pycore_fileutils.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Include/internal/pycore_fileutils.h b/Include/internal/pycore_fileutils.h index 3ce8108..332cc30 100644 --- a/Include/internal/pycore_fileutils.h +++ b/Include/internal/pycore_fileutils.h @@ -244,7 +244,8 @@ extern int _Py_add_relfile(wchar_t *dirname, const wchar_t *relfile, 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); +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); // Macros to protect CRT calls against instant termination when passed an |