bpo-31532: Fix memory corruption due to allocator mix (#3679) · pythoncapi/cpython@3d1e2ab · GitHub
Skip to content

Commit 3d1e2ab

Browse files
nurelinbenjaminp
authored andcommitted
bpo-31532: Fix memory corruption due to allocator mix (python#3679)
Fix a memory corruption in getpath.c due to mixed memory allocators between Py_GetPath() and Py_SetPath(). The fix use the Raw allocator to mimic the windows version. This patch should be used from python3.6 to the current version for more details, see the bug report and pyinstaller/pyinstaller#2812
1 parent b091bec commit 3d1e2ab

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

Lines changed: 2 additions & 0 deletions

Modules/getpath.c

Lines changed: 1 addition & 1 deletion

0 commit comments

Comments
 (0)