Skip to content

Conversation

@cmaloney
Copy link
Contributor

@cmaloney cmaloney commented Oct 26, 2025

While RawIOBase.readinto should return a count of bytes between 0 and the length of the given buffer, it is not required to. Add validation inside RawIOBase.read that the returned byte count is reasonable.

While `RawIOBase.readinto` should return a count of bytes between 0 and
the length of the given buffer, it is not required to. Add validation
inside RawIOBase.read that the returned byte count is reasonable.
@cmaloney cmaloney added needs backport to 3.13 bugs and security fixes needs backport to 3.14 bugs and security fixes labels Oct 26, 2025
@cmaloney cmaloney changed the title gh-104607: Validate returned byte count in RawIOBase.read gh-140607: Validate returned byte count in RawIOBase.read Oct 26, 2025
@cmaloney cmaloney closed this Oct 26, 2025
@cmaloney cmaloney deleted the gh-104607 branch October 26, 2025 04:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting review needs backport to 3.13 bugs and security fixes needs backport to 3.14 bugs and security fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant