Skip to content

[3.14] gh-148653: Fix some marshal errors related to recursive immutable objects (GH-148698)#148711

Merged
serhiy-storchaka merged 1 commit intopython:3.14from
serhiy-storchaka:backport-2e37d83-3.14
Apr 18, 2026
Merged

[3.14] gh-148653: Fix some marshal errors related to recursive immutable objects (GH-148698)#148711
serhiy-storchaka merged 1 commit intopython:3.14from
serhiy-storchaka:backport-2e37d83-3.14

Conversation

@serhiy-storchaka
Copy link
Copy Markdown
Member

@serhiy-storchaka serhiy-storchaka commented Apr 18, 2026

Forbid marshalling recursive code and slice objects which cannot be correctly unmarshalled.
Add multiple tests for recursive data structures.
(cherry picked from commit 2e37d83)

…immutable objects (pythonGH-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.
(cherry picked from commit 2e37d83)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
@serhiy-storchaka serhiy-storchaka added the needs backport to 3.13 bugs and security fixes label Apr 18, 2026
@serhiy-storchaka serhiy-storchaka enabled auto-merge (squash) April 18, 2026 08:33
@serhiy-storchaka serhiy-storchaka merged commit d496c63 into python:3.14 Apr 18, 2026
52 checks passed
@miss-islington-app
Copy link
Copy Markdown

Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13.
🐍🍒⛏🤖

@miss-islington-app
Copy link
Copy Markdown

Sorry, @serhiy-storchaka, I could not cleanly backport this to 3.13 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker d496c637a3dac2cc5d51aa4a7ebd9a740143a719 3.13

serhiy-storchaka added a commit to serhiy-storchaka/cpython that referenced this pull request Apr 18, 2026
…immutable objects (pythonGH-148698) (pythonGH-148711)

(cherry picked from commit d496c63)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Forbid marshalling recursive code and slice objects which
cannot be correctly unmarshalled.
Add multiple tests for recursive data structures.
(cherry picked from commit 2e37d83)
@bedevere-app
Copy link
Copy Markdown

bedevere-app bot commented Apr 18, 2026

GH-148713 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.13 bugs and security fixes label Apr 18, 2026
@serhiy-storchaka serhiy-storchaka removed their assignment Apr 18, 2026
serhiy-storchaka added a commit that referenced this pull request Apr 18, 2026
…bjects (GH-148698) (GH-148711) (GH-148713)

(cherry picked from commit d496c63)

Forbid marshalling recursive code objects which
cannot be correctly unmarshalled.
Add multiple tests for recursive data structures.
(cherry picked from commit 2e37d83)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant