bpo-44022: Fix http client infinite line reading (DoS) after a HTTP 100 Continue...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 5 May 2021 23:05:52 +0000 (16:05 -0700)
committerSean Whitton <spwhitton@spwhitton.name>
Thu, 20 Mar 2025 02:07:39 +0000 (10:07 +0800)
commit36d43eb59643a0f70c84d40b79aba78d77e83b16
tree4fc080992865d74c808ce77a75f7e5773204b322
parentfe7971f4320bf873a938d5a4b8792df2abf3a0ee
bpo-44022: Fix http client infinite line reading (DoS) after a HTTP 100 Continue (GH-25916)

Fixes http.client potential denial of service where it could get stuck reading lines from a malicious server after a 100 Continue response.

Co-authored-by: Gregory P. Smith <greg@krypto.org>
(cherry picked from commit 47895e31b6f626bc6ce47d175fe9d43c1098909d)

Co-authored-by: Gen Xu <xgbarry@gmail.com>
Gbp-Pq: Name 0005-bpo-44022-Fix-http-client-infinite-line-reading-DoS-.patch
Lib/http/client.py
Lib/test/test_httplib.py