]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-148653: Fix some marshal errors related to recursive immutable objects (GH-148698)
authorSerhiy Storchaka <storchaka@gmail.com>
Sat, 18 Apr 2026 08:24:33 +0000 (11:24 +0300)
committerGitHub <noreply@github.com>
Sat, 18 Apr 2026 08:24:33 +0000 (11:24 +0300)
commit2e37d836411e99cff7bb341ba14be5ea95fac08c
tree4ced1eeaf1e879323db80077f2e37296d4af18f9
parent92164dc91712dcf27e2d526fa6ef8735a8356a36
gh-148653: Fix some marshal errors related to recursive immutable objects (GH-148698)

Forbid marshalling recursive code, slice and frozendict objects which
cannot be correctly unmarshalled.
Reject invalid marshal data produced by marshalling recursive frozendict
objects which was previously incorrectly unmarshalled.
Add multiple tests for recursive data structures.
Lib/test/test_marshal.py
Misc/NEWS.d/next/Core_and_Builtins/2026-04-17-20-37-02.gh-issue-148653.nbbHMh.rst [new file with mode: 0644]
Python/marshal.c