gh-112127: Fix possible use-after-free in atexit.unregister() (GH-114… · python/cpython@2b466c4 · GitHub
Skip to content

Commit 2b466c4

Browse files
gh-112127: Fix possible use-after-free in atexit.unregister() (GH-114092)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
1 parent 49627dc commit 2b466c4

4 files changed

Lines changed: 18 additions & 1 deletion

File tree

Lib/test/_test_atexit.py

Lines changed: 13 additions & 0 deletions

Misc/ACKS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -908,6 +908,7 @@ Jim Jewett
908908
Pedro Diaz Jimenez
909909
Orjan Johansen
910910
Fredrik Johansson
911+
Benjamin Johnson
911912
Benjamin K. Johnson
912913
Gregory K. Johnson
913914
Kent Johnson
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Fix possible use-after-free in :func:`atexit.unregister` when the callback
2+
is unregistered during comparison.

Modules/atexitmodule.c

Lines changed: 2 additions & 1 deletion

0 commit comments

Comments
 (0)