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

[3.14] gh-141311: Avoid assertion in BytesIO.readinto() (GH-141333) by miss-islington · Pull Request #141457 · python/cpython · GitHub

Repository navigation

[3.14] gh-141311: Avoid assertion in BytesIO.readinto() (GH-141333) - #141457

Merged
serhiy-storchaka merged 1 commit into
python:3.14from
miss-islington:backport-7d54374-3.14
Nov 12, 2025
Merged

serhiy-storchaka merged 1 commit into
python:3.14from
miss-islington:backport-7d54374-3.14

Conversation

miss-islington commented Nov 12, 2025 •
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Contributor

Fix error in assertion which causes failure if pos is equal to PY_SSIZE_T_MAX.
Fix undefined behavior in read() and readinto() if pos is larger that the size
of the underlying buffer.
(cherry picked from commit 7d54374)

Co-authored-by: Cody Maloney cmaloney@users.noreply.github.com

Fix error in assertion which causes failure if pos is equal to PY_SSIZE_T_MAX.
Fix undefined behavior in read() and readinto() if pos is larger that the size
of the underlying buffer.
(cherry picked from commit 7d54374)

Co-authored-by: Cody Maloney <cmaloney@users.noreply.github.com>
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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL