{{ message }}
bpo-31626: Fixed a bug in debug memory allocator.#3844
Merged
serhiy-storchaka merged 4 commits intoOct 31, 2017
Merged
Conversation
There was a write to freed memory after shrinking a memory block.
skrah
reviewed
Oct 1, 2017
vstinner
reviewed
Oct 2, 2017
Member
|
I wrote a different fix: #3898 rewrites the debug hook to not call realloc() anymore, but use malloc()+free(), reusing debug hooks for malloc() and free(). |
Sorry, something went wrong.
Contributor
|
Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.6. |
Sorry, something went wrong.
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this pull request
Oct 31, 2017
Removed a code that incorrectly detected in-place resizing in realloc() and wrote to freed memory. (cherry picked from commit b484d56)
serhiy-storchaka
pushed a commit
that referenced
this pull request
Oct 31, 2017
embray
pushed a commit
to embray/cpython
that referenced
this pull request
Nov 9, 2017
Removed a code that incorrectly detected in-place resizing in realloc() and wrote to freed memory.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.
There was a write to freed memory after shrinking a memory block.
https://bugs.python.org/issue31626