gh-97591: In `Exception.__setstate__()` acquire strong references bef… · python/cpython@d639438 · GitHub
Skip to content

Commit d639438

Browse files
authored
gh-97591: In Exception.__setstate__() acquire strong references before calling tp_hash slot (#97700)
1 parent 8baef8a commit d639438

3 files changed

Lines changed: 34 additions & 1 deletion

File tree

Lib/test/test_baseexception.py

Lines changed: 25 additions & 0 deletions
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Fixed a missing incref/decref pair in `Exception.__setstate__()`.
2+
Patch by Ofey Chan.

Objects/exceptions.c

Lines changed: 7 additions & 1 deletion

0 commit comments

Comments
 (0)