[3.14] gh-141311: Avoid assertion in BytesIO.readinto() (GH-141333) (GH-141457)
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 7d54374f9c7d91e0ef90c4ad84baf10073cf1d8a) Co-authored-by: Cody Maloney <cmaloney@users.noreply.github.com>
M
Miss Islington (bot) committed
75b5157e846a7d65eace108b9d234dfd6115735f
Parent: b883ad1
Committed by GitHub <noreply@github.com>
on 11/12/2025, 10:23:26 AM