Skip to content

Conversation

@vstinner
Copy link
Member

@vstinner vstinner commented Jan 15, 2026

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.

(cherry picked from commit c461aa9)

…thon#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.

(cherry picked from commit c461aa9)
@vstinner vstinner merged commit 1241432 into python:3.14 Jan 15, 2026
92 of 94 checks passed
@vstinner vstinner deleted the bytesio_write14 branch January 15, 2026 16:02
@miss-islington-app
Copy link

Thanks @vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13.
🐍🍒⛏🤖

@miss-islington-app
Copy link

Sorry, @vstinner, I could not cleanly backport this to 3.13 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker 1241432150f6342e3d38c5a80a19c8c157a4ebe8 3.13

@bedevere-app

This comment was marked as outdated.

@vstinner vstinner removed the needs backport to 3.13 bugs and security fixes label Jan 15, 2026
@bedevere-app
Copy link

bedevere-app bot commented Jan 15, 2026

GH-143878 is a backport of this pull request to the 3.13 branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants