Crash report
What happened?
import io, sys
COOKIE_VALUE = (100 << (12 * 8)) | (0x80 << (19 * 8))
data = b"Hello World!" * 100
raw = io.BytesIO(data)
buf = io.BufferedReader(raw)
tio = io.TextIOWrapper(buf, encoding='utf-8')
tio.read(20)
tio.seek(COOKIE_VALUE)
tio.readline()
sys.exit(0)
CPython versions tested on:
3.16
Operating systems tested on:
Linux
Output from running 'python -VV' on the command line:
Python 3.16.0a0 (tags/v3.15.0b1-959-gd0714388278:d0714388278, Jul 13 2026, 20:32:55) [GCC 12.3.0] Linux x86_64, GCC 12.3.0
Linked PRs
Crash report
What happened?
CPython versions tested on:
3.16
Operating systems tested on:
Linux
Output from running 'python -VV' on the command line:
Python 3.16.0a0 (tags/v3.15.0b1-959-gd0714388278:d0714388278, Jul 13 2026, 20:32:55) [GCC 12.3.0] Linux x86_64, GCC 12.3.0
Linked PRs
io.TextIOWrapper.seek()with malformed cookie #153667