cpython/Lib/http
Miss Islington (bot) afc40bdd3d
[3.11] gh-119451: Fix a potential denial of service in http.client (GH-119454) (#142141)
gh-119451: Fix a potential denial of service in http.client (GH-119454)

Reading the whole body of the HTTP response could cause OOM if
the Content-Length value is too large even if the server does not send
a large amount of data. Now the HTTP client reads large data by chunks,
therefore the amount of consumed memory is proportional to the amount
of sent data.
(cherry picked from commit 5a4c4a033a)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2026-01-25 17:11:02 +00:00
..
__init__.py gh-91996: Add an HTTPMethod StrEnum to http (GH-91997) 2022-05-05 15:39:02 -07:00
client.py [3.11] gh-119451: Fix a potential denial of service in http.client (GH-119454) (#142141) 2026-01-25 17:11:02 +00:00
cookiejar.py [3.11] gh-99576: Fix cookiejar file that was not truncated for some classes (GH-99616) (GH-100377) 2022-12-20 18:22:39 +01:00
cookies.py [3.11] gh-143919: Reject control characters in http cookies (#144092) 2026-01-25 17:10:18 +00:00
server.py [3.11] gh-119452: Fix a potential virtual memory allocation denial of service in http.server (GH-142216) (#142298) 2026-01-25 17:10:45 +00:00