SIGN IN SIGN UP
python / cpython UNCLAIMED

The Python programming language

0 0 2 Python

[3.12] gh-119451: Fix a potential denial of service in http.client (GH-119454) (#142140)

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 5a4c4a033a4a54481be6870aa1896fad732555b5)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
M
Miss Islington (bot) committed
14b1fdb0a94b96f86fc7b86671ea9582b8676628
Parent: 5a8b196
Committed by GitHub <noreply@github.com> on 12/22/2025, 1:50:18 PM