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.12] gh-106092: Fix use-after-free crash in frame_dealloc (GH-106875) #107532

Merged
merged 1 commit into from
Aug 1, 2023

Commits on Aug 1, 2023

  1. pythongh-106092: Fix use-after-free crash in frame_dealloc (pythonGH-…

    …106875)
    
    It was possible for the trashcan to delay the deallocation of a
    PyFrameObject until after its corresponding _PyInterpreterFrame has
    already been freed.  So frame_dealloc needs to avoid dereferencing the
    f_frame pointer unless it first checks that the pointer still points
    to the interpreter frame within the frame object.
    
    (cherry picked from commit 557b05c)
    
    Co-authored-by: Anders Kaseorg <andersk@mit.edu>
    Signed-off-by: Anders Kaseorg <andersk@mit.edu>
    andersk authored and miss-islington committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    cac7a94 View commit details
    Browse the repository at this point in the history