gh-148653: Fix some marshal errors related to recursive immutable objects#148698
Conversation
…le objects 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.
|
Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14. |
|
Sorry, @serhiy-storchaka, I could not cleanly backport this to |
|
Sorry, @serhiy-storchaka, I could not cleanly backport this to |
…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>
|
GH-148711 is a backport of this pull request to the 3.14 branch. |
…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)
|
|
|
|
|
…thongh-148698 (pythonGH-148725) (cherry picked from commit 7ce737ea11919aebf7eef174f910759e74d0ea50) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
…thongh-148698 (pythonGH-148725) (cherry picked from commit 7ce737e) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
|
|
|
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.