You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit e23bfa2
Browse filesBrowse the repository at this point in the historyBrowse files
[3.14] gh-160811: fix TextIOWrapper.tell() after seek() reading past end of buffer (GH-160812)
TextIOWrapper keeps a "bytes to character" ratio as a float so it can optimize operations. If that got to NaN or Infinity as a value then `.tell()` could compute `skip_bytes` larger than the snapshot buffer. In the C implementation this read past the end of the buffer, and _pyio returned a wrong position.
(cherry picked from commit ad126c9)
Co-authored-by: tonghuaroot (童话) <tonghuaroot@gmail.com>
0 commit comments