Skip to content

[3.6] bpo-31532: Fix memory corruption due to allocator mix (GH-3679) #3681

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 21, 2017

Conversation

miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Sep 21, 2017

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
(cherry picked from commit 3d1e2ab)

https://bugs.python.org/issue31532

…-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
(cherry picked from commit 3d1e2ab)
@the-knights-who-say-ni
Copy link

Hello, and thanks for your contribution!

I'm a bot set up to make sure that the project can legally accept your contribution by verifying you have signed the PSF contributor agreement (CLA).

Unfortunately we couldn't find an account corresponding to your GitHub username on bugs.python.org (b.p.o) to verify you have signed the CLA (this might be simply due to a missing "GitHub Name" entry in your b.p.o account settings). This is necessary for legal reasons before we can look at your contribution. Please follow the steps outlined in the CPython devguide to rectify this issue.

Thanks again to your contribution and we look forward to looking at it!

@miss-islington
Copy link
Contributor Author

@nurelin and @benjaminp: Backport status check is done, and it's a success ✅ .

@benjaminp benjaminp merged commit 88d0663 into python:3.6 Sep 21, 2017
@miss-islington
Copy link
Contributor Author

Thanks, @benjaminp!

@miss-islington miss-islington deleted the backport-3d1e2ab-3.6 branch September 21, 2017 06:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants