summaryrefslogtreecommitdiffstats
path: root/Python/asdl.c
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2023-08-01 10:42:55 (GMT)
committerGitHub <noreply@github.com>2023-08-01 10:42:55 (GMT)
commitb68faa3fa3214cda35d5a34639a7a62b6a98bc6c (patch)
tree8383ad55b2ed0a5bbb3347356b9ccd7f7bea3a08 /Python/asdl.c
parentfc4532a55d23887bae49350d2f939c597d6b5b98 (diff)
downloadcpython-b68faa3fa3214cda35d5a34639a7a62b6a98bc6c.zip
cpython-b68faa3fa3214cda35d5a34639a7a62b6a98bc6c.tar.gz
cpython-b68faa3fa3214cda35d5a34639a7a62b6a98bc6c.tar.bz2
[3.12] gh-106092: Fix use-after-free crash in frame_dealloc (GH-106875) (#107532)
gh-106092: Fix use-after-free crash in frame_dealloc (GH-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 557b05c7a5334de5da3dc94c108c0121f10b9191) Signed-off-by: Anders Kaseorg <andersk@mit.edu> Co-authored-by: Anders Kaseorg <andersk@mit.edu>
Diffstat (limited to 'Python/asdl.c')
0 files changed, 0 insertions, 0 deletions