cpython/Modules/_io
Yongtao Huang 375e372c66
gh-143689: Fix BufferedReader.read1 leaving object in reentrant state on error (#143690)
BufferedReader.read1() could leave the buffered object in a
reentrant (locked) state when an exception was raised while
allocating the output buffer.

This change ensures the internal buffered lock is always released
on error, keeping the object in a consistent state after failures.

Signed-off-by: Yongtao Huang <yongtaoh2022@gmail.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Cody Maloney <cmaloney@users.noreply.github.com>
Co-authored-by: sobolevn <mail@sobolevn.me>
2026-01-19 15:09:30 +01:00
..
clinic gh-85524: Raise "UnsupportedOperation" on FileIO.readall (#141214) 2025-11-12 10:37:48 +01:00
_iomodule.c gh-141376: Fix exported symbols (GH-141377) 2025-11-11 09:21:24 +01:00
_iomodule.h gh-141376: Fix exported symbols (GH-141377) 2025-11-11 09:21:24 +01:00
bufferedio.c gh-143689: Fix BufferedReader.read1 leaving object in reentrant state on error (#143690) 2026-01-19 15:09:30 +01:00
bytesio.c gh-143378: Fix use-after-free when BytesIO is concurrently mutated during write operations (GH-143408) 2026-01-09 13:50:56 +02:00
fileio.c gh-85524: Raise "UnsupportedOperation" on FileIO.readall (#141214) 2025-11-12 10:37:48 +01:00
iobase.c gh-60107: Remove a copy from RawIOBase.read (#141532) 2025-11-20 17:37:04 +00:00
stringio.c gh-141376: Fix exported symbols (GH-141377) 2025-11-11 09:21:24 +01:00
textio.c gh-142594: fix by property calls io.TextIOWrapper.detach (GH-142706) 2025-12-15 15:13:58 +01:00
winconsoleio.c gh-141376: Fix exported symbols (GH-141377) 2025-11-11 09:21:24 +01:00