]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-148653: Fix some marshal errors related to recursive code objects (GH-14869...
authorSerhiy Storchaka <storchaka@gmail.com>
Sat, 18 Apr 2026 09:29:38 +0000 (12:29 +0300)
committerGitHub <noreply@github.com>
Sat, 18 Apr 2026 09:29:38 +0000 (09:29 +0000)
commitac1c1e7ef05a15fdabdf38d11cbfb02a93ad6cfa
treea98b2c38b6070dd7f3f77cd5313673d41944259b
parent53e07256802327521d06cc7c8bcd317301f6a6e0
[3.13] gh-148653: Fix some marshal errors related to recursive code objects (GH-148698) (GH-148711) (GH-148713)

(cherry picked from commit d496c637a3dac2cc5d51aa4a7ebd9a740143a719)

Forbid marshalling recursive code objects which
cannot be correctly unmarshalled.
Add multiple tests for recursive data structures.
(cherry picked from commit 2e37d836411e99cff7bb341ba14be5ea95fac08c)
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