]> granicus.if.org Git - python/commit
bpo-31532: Fix memory corruption due to allocator mix (#3679)
authornurelin <nurelin@nurelin.eu>
Thu, 21 Sep 2017 06:08:20 +0000 (08:08 +0200)
committerBenjamin Peterson <benjamin@python.org>
Thu, 21 Sep 2017 06:08:20 +0000 (23:08 -0700)
commit3d1e2ab584ed0175592b5be2a0bc98dc1723776a
tree7f52f499c7ca56dab06b599b22a546c1f78d9b0c
parentb091bec824137f286b22084be5f8d397d21b9abb
bpo-31532: Fix memory corruption due to allocator mix (#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
  https://github.com/pyinstaller/pyinstaller/issues/2812
Misc/NEWS.d/next/C API/2017-09-20-21-59-52.bpo-31532.s9Cw9_.rst [new file with mode: 0644]
Modules/getpath.c