cpython/Modules/_io
Miss Islington (bot) 45f5b00a9a
Some checks failed
Tests / Change detection (push) Has been cancelled
Lint / lint (push) Has been cancelled
Tests / Docs (push) Has been cancelled
Tests / Check if the ABI has changed (push) Has been cancelled
Tests / Check if Autoconf files are up to date (push) Has been cancelled
Tests / Check if generated files are up to date (push) Has been cancelled
Tests / C API Docs (push) Has been cancelled
Tests / (push) Has been cancelled
Tests / -1 (push) Has been cancelled
Tests / -2 (push) Has been cancelled
Tests / -3 (push) Has been cancelled
Tests / -4 (push) Has been cancelled
Tests / -5 (push) Has been cancelled
Tests / -6 (push) Has been cancelled
Tests / Windows MSI (push) Has been cancelled
Tests / Windows MSI-1 (push) Has been cancelled
Tests / Windows MSI-2 (push) Has been cancelled
Tests / -7 (push) Has been cancelled
Tests / -8 (push) Has been cancelled
Tests / -9 (push) Has been cancelled
Tests / -10 (push) Has been cancelled
Tests / -11 (push) Has been cancelled
Tests / -12 (push) Has been cancelled
Tests / -13 (push) Has been cancelled
Tests / -14 (push) Has been cancelled
Tests / Ubuntu (installed) (push) Has been cancelled
Tests / Ubuntu SSL tests (push) Has been cancelled
Tests / Ubuntu SSL tests-1 (push) Has been cancelled
Tests / Ubuntu SSL tests-2 (push) Has been cancelled
Tests / Ubuntu SSL tests-3 (push) Has been cancelled
Tests / Ubuntu SSL tests-4 (push) Has been cancelled
Tests / Ubuntu SSL tests-5 (push) Has been cancelled
Tests / Android (aarch64) (push) Has been cancelled
Tests / Android (x86_64) (push) Has been cancelled
Tests / iOS (push) Has been cancelled
Tests / Emscripten (push) Has been cancelled
Tests / WASI (push) Has been cancelled
Tests / Hypothesis tests on Ubuntu (push) Has been cancelled
Tests / Address sanitizer (push) Has been cancelled
Tests / Sanitizers (push) Has been cancelled
Tests / Sanitizers-1 (push) Has been cancelled
Tests / Sanitizers-2 (push) Has been cancelled
Tests / Sanitizers-3 (push) Has been cancelled
Tests / Cross build Linux (push) Has been cancelled
Tests / CIFuzz (push) Has been cancelled
Tests / CIFuzz-1 (push) Has been cancelled
Tests / CIFuzz-2 (push) Has been cancelled
Tests / CIFuzz-3 (push) Has been cancelled
Tests / All required checks pass (push) Has been cancelled
[3.15] gh-159739: Recheck BytesIO state after converting truncate size (GH-160190) (#160384)
A size object's __index__() can close a BytesIO or export its buffer after truncate() checks the stream. Continuing can dereference a cleared buffer or resize storage behind a live view. Recheck the stream state after size conversion. Backport to 3.15 and 3.14; on 3.14, put the regression test in Lib/test/test_memoryio.py.
(cherry picked from commit 8bfda5553c)

Co-authored-by: Jelle Zijlstra <jelle@openai.com>
2026-10-23 01:33:45 +00:00
..
clinic [3.15] gh-157364: Fix use-after-free in io.TextIOWrapper during reentrant detach (#159591) 2026-10-17 01:23:00 +02:00
_iomodule.c
_iomodule.h
bufferedio.c
bytesio.c [3.15] gh-159739: Recheck BytesIO state after converting truncate size (GH-160190) (#160384) 2026-10-23 01:33:45 +00:00
fileio.c
iobase.c [3.15] gh-159739: Respect readline limits after a short read (GH-159974) (#160246) 2026-10-22 19:29:58 +00:00
stringio.c
textio.c [3.15] gh-157364: Fix use-after-free in io.TextIOWrapper during reentrant detach (#159591) 2026-10-17 01:23:00 +02:00
winconsoleio.c [3.15] Fix unchecked NULL returns in several C modules (GH-160213) (#160262) 2026-10-22 21:38:32 +01:00