Skip to content

[pull] main from python:main#969

Merged
pull[bot] merged 3 commits intotj-python:mainfrom
python:main
Apr 18, 2026
Merged

[pull] main from python:main#969
pull[bot] merged 3 commits intotj-python:mainfrom
python:main

Conversation

@pull
Copy link
Copy Markdown

@pull pull bot commented Apr 18, 2026

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )


📚 Documentation preview 📚: https://cpython-previews--969.org.readthedocs.build/

serhiy-storchaka and others added 3 commits April 18, 2026 11:24
…ects (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.
Co-authored-by: Stan Ulbrych <stan@python.org>
If _BlocksOutputBuffer_Finish() fails (memory allocation failure),
PyBytesWriter_Discard() is called on the writer. Then if
_BlocksOutputBuffer_OnError() is called, it calls again
PyBytesWriter_Discard() causing a double free.

Fix _BlocksOutputBuffer_Finish() by setting buffer->writer to NULL,
so _BlocksOutputBuffer_OnError() does nothing instead of calling
PyBytesWriter_Discard() again.
@pull pull bot locked and limited conversation to collaborators Apr 18, 2026
@pull pull bot added the ⤵️ pull label Apr 18, 2026
@pull pull bot merged commit d61fcf8 into tj-python:main Apr 18, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants