]> granicus.if.org Git - python/commit
[3.6] closes bpo-31532: Fix memory corruption due to allocator mix (GH-3679) (#3681)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 21 Sep 2017 06:47:12 +0000 (23:47 -0700)
committerBenjamin Peterson <benjamin@python.org>
Thu, 21 Sep 2017 06:47:12 +0000 (23:47 -0700)
commit88d0663005d258526496d1f8ee0acb7103c69e80
tree97d8dc56d026f5d0b7cbdd46db64e311404b4100
parent6b44ad1abdb9b3aaf27e2ba1fc4b69b9a0f50c25
[3.6] closes bpo-31532: Fix memory corruption due to allocator mix (GH-3679) (#3681)

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
  https://github.com/pyinstaller/pyinstaller/issues/2812
(cherry picked from commit 3d1e2ab584ed0175592b5be2a0bc98dc1723776a)
Misc/NEWS.d/next/C API/2017-09-20-21-59-52.bpo-31532.s9Cw9_.rst [new file with mode: 0644]
Modules/getpath.c