Skip to content

gh-156939: Detect PyBytesWriter buffer overflow earlier - #157385

Open
vstinner wants to merge 1 commit into
python:mainfrom
vstinner:check_canary
Open

gh-156939: Detect PyBytesWriter buffer overflow earlier#157385
vstinner wants to merge 1 commit into
python:mainfrom
vstinner:check_canary

Conversation

@vstinner

@vstinner vstinner commented Sep 13, 2026

Copy link
Copy Markdown
Member

Check the canary byte in all PyBytesWriter methods, not only in PyBytesWriter_Finish().

Add a discard() method to the _testcapi wrapper.

Check the canary byte in all PyBytesWriter methods, not only in
PyBytesWriter_Finish().

Add a discard() method to the _testcapi wrapper.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant