Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork34k
gh-143602: Fix duplicate buffer exports in io.BytesIO.write#143629
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Fix a 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.
vstinner left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
LGTM. The NEWS entry can be enhanced, but I cannot propose a better description.
c461aa9 intopython:mainUh oh!
There was an error while loading.Please reload this page.
Thanks@superboy-zjc for the PR, and@vstinner for merging it 🌮🎉.. I'm working now to backport this PR to: 3.14. |
Thanks@superboy-zjc for the PR, and@vstinner for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13. |
Sorry,@superboy-zjc and@vstinner, I could not cleanly backport this to |
Sorry,@superboy-zjc and@vstinner, I could not cleanly backport this to |
GH-143872 is a backport of this pull request to the3.14 branch. |
vstinner commentedJan 15, 2026
I backported the change to 3.14:#143872. |
vstinner commentedJan 15, 2026
Merged, thanks for your contribution@superboy-zjc. |
…thon#143629)Fix an inconsistency issue in io.BytesIO.write() where the buffer was exportedtwice, which could lead to unexpected data overwrites and position drift whenthe buffer changes between exports.(cherry picked from commitc461aa9)
serhiy-storchaka commentedJan 15, 2026
LGTM. 👍 |
…143629) (#143872)gh-143602: Fix duplicate buffer exports in io.BytesIO.write (#143629)Fix an inconsistency issue in io.BytesIO.write() where the buffer was exportedtwice, which could lead to unexpected data overwrites and position drift whenthe buffer changes between exports.(cherry picked from commitc461aa9)Co-authored-by: zhong <60600792+superboy-zjc@users.noreply.github.com>
bedevere-bot commentedJan 15, 2026
|
…143629) (#143872) (#143878)[3.14]gh-143602: Fix duplicate buffer exports in io.BytesIO.write (#143629) (#143872)gh-143602: Fix duplicate buffer exports in io.BytesIO.write (#143629)Fix an inconsistency issue in io.BytesIO.write() where the buffer was exportedtwice, which could lead to unexpected data overwrites and position drift whenthe buffer changes between exports.(cherry picked from commitc461aa9)(cherry picked from commit1241432)Co-authored-by: zhong <60600792+superboy-zjc@users.noreply.github.com>
Uh oh!
There was an error while loading.Please reload this page.
Fix a 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.