]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-143602: Fix duplicate buffer exports in io.BytesIO.write (#143629)
authorzhong <60600792+superboy-zjc@users.noreply.github.com>
Thu, 15 Jan 2026 15:08:55 +0000 (07:08 -0800)
committerGitHub <noreply@github.com>
Thu, 15 Jan 2026 15:08:55 +0000 (16:08 +0100)
commitc461aa99e2fabbaf5859c0a8a93e08306ee8115d
treebaf7ba3901c524d4fb7d829633d30b4d340ae8f5
parent3514ba2175764e4d746e6862e2fcfc06b5fcd6c2
gh-143602: Fix duplicate buffer exports in io.BytesIO.write (#143629)

Fix an inconsistency issue in io.BytesIO.write() where the buffer was exported
twice, which could lead to unexpected data overwrites and position drift when
the buffer changes between exports.
Lib/_pyio.py
Lib/test/test_io/test_memoryio.py
Misc/NEWS.d/next/Library/2026-01-09-12-37-19.gh-issue-143602.V8vQpj.rst [new file with mode: 0644]