]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-106287: Do not write objects after an unmarshalling error (GH-132715)
authorDuane Griffin <duaneg@dghda.com>
Wed, 14 Jan 2026 11:25:46 +0000 (00:25 +1300)
committerGitHub <noreply@github.com>
Wed, 14 Jan 2026 11:25:46 +0000 (11:25 +0000)
commitce8f5f98c6fc95a1704360d986a4d0281eeada79
tree2a8782158f427335e2a27975e6b781529e0e91df
parent94dbce13979ea1b302ba12be8769175c50639b30
gh-106287: Do not write objects after an unmarshalling error (GH-132715)

Writing out an object may involve a slot lookup, which is not safe to do with
an exception raised. In debug mode an assertion failure will occur if this
happens.
Lib/test/test_marshal.py
Misc/NEWS.d/next/Library/2025-04-19-17-34-11.gh-issue-132715.XXl47F.rst [new file with mode: 0644]
Python/marshal.c