Skip to content
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

[3.8] bpo-40412: Nullify inittab_copy during finalization (GH-19746) #19841

Merged
merged 1 commit into from May 1, 2020

Commits on May 1, 2020

  1. bpo-40412: Nullify inittab_copy during finalization (pythonGH-19746)

    Otherwise we leave a dangling pointer to free'd memory. If we
    then initialize a new interpreter in the same process and call
    PyImport_ExtendInittab, we will (likely) crash when calling
    PyMem_RawRealloc(inittab_copy, ...) since the pointer address
    is bogus.
    
    Automerge-Triggered-By: @brettcannon
    (cherry picked from commit 64224a4)
    
    Co-authored-by: Gregory Szorc <gregory.szorc@gmail.com>
    indygreg authored and miss-islington committed May 1, 2020
    Copy the full SHA
    6f3b470 View commit details
    Browse the repository at this point in the history