Skip to content

Latest commit

 

History

History
8 lines (8 loc) · 565 Bytes

2025-11-27-12-45-05.gh-issue-141713.54_uaA.rst

File metadata and controls

8 lines (8 loc) · 565 Bytes

Fix a potential memory denial of service when reading from a file, a file descriptor or a buffered stream the large specific number of bytes. This affects the :func:`os.read` and :func:`os.pread` functions and the :meth:`!read` and :meth:`!read1` methods of various :mod:`io` classes. When the number of bytes to read is received from untrusted source, it could cause an arbitrary amount of memory to be allocated. This could have led to symptoms including a :exc:`MemoryError`, swapping, out of memory (OOM) killed processes or containers, or even system crashes.