FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-156939: Clear newly allocated bytes in PyBytesWriter_Resize() by vstinner · Pull Request #157455 · python/cpython · GitHub

Repository navigation

gh-156939: Clear newly allocated bytes in PyBytesWriter_Resize() - #157455

Merged
vstinner merged 1 commit into
python:mainfrom
vstinner:writer_canary2
Sep 15, 2026
Merged

vstinner merged 1 commit into
python:mainfrom
vstinner:writer_canary2

Conversation

vstinner commented Sep 13, 2026 •
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Member

Adjust the logic to set newly allocated bytes to a known pattern (PyBytesWrite_NEW_BYTE). Only copy 'size' bytes from the small buffer to the new bytes/bytearray object.

Adjust the logic to set newly allocated bytes to a known pattern
(PyBytesWrite_NEW_BYTE). Only copy 'size' bytes from the small buffer
to the new bytes/bytearray object.
vstinner enabled auto-merge (squash) September 15, 2026 14:41
vstinner merged commit 3b1057d into python:main Sep 15, 2026
96 of 98 checks passed
vstinner deleted the writer_canary2 branch September 15, 2026 15:10
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL