cpython/Misc/NEWS.d/next
Miss Islington (bot) e5ab9e3740
[3.12] gh-112064: Fix incorrect handling of negative read sizes in HTTPResponse.read() (GH-128270) (#129396)
gh-112064: Fix incorrect handling of negative read sizes in `HTTPResponse.read()` (GH-128270)

The parameter `amt` of `HTTPResponse.read()`, which could be a negative integer,
has not been handled before and led to waiting for the connection to close
for `keep-alive connections`. Now, this has been fixed, and passing negative values
to `HTTPResponse().read()` works the same as passing `None` value.
(cherry picked from commit 4d0d24f6e3)

Co-authored-by: Yury Manushkin <manushkin@gmail.com>
2025-01-28 11:54:27 +00:00
..
Build [3.12] gh-128472: Add -skip-funcs to BOLT options to fix computed goto errors (gh-128511) (gh-128572) 2025-01-07 14:21:43 +09:00
C API [3.12] gh-107249: Implement Py_UNUSED() for MSVC (GH-107250) (#127907) 2024-12-13 11:58:47 +00:00
C_API [3.12] gh-126554: ctypes: Correctly handle NULL dlsym values (GH-126555) (GH-127764) 2024-12-17 13:53:43 +02:00
Core and Builtins [3.12] GH-117195: Avoid assertion error in object.__sizeof__ (GH-117220) (#127605) 2024-12-11 12:21:07 +01:00
Core_and_Builtins [3.12] gh-124363: Treat debug expressions in f-string as raw strings (GH-128399) (#129190) 2025-01-22 18:08:58 +00:00
Documentation [3.12] GH-125722: Increase minimum supported Sphinx to 8.1.3 (GH-128922) (#129038) 2025-01-20 00:46:05 +00:00
IDLE Python 3.12.8 2024-12-03 19:42:41 +01:00
Library [3.12] gh-112064: Fix incorrect handling of negative read sizes in HTTPResponse.read() (GH-128270) (#129396) 2025-01-28 11:54:27 +00:00
macOS Python 3.12.8 2024-12-03 19:42:41 +01:00
Security [3.12] gh-119511: Fix a potential denial of service in imaplib (GH-119514) (GH-129356) 2025-01-27 14:06:14 -08:00
Tests [3.12] gh-127637: add tests for dis command-line interface (#127759) (#127780) 2025-01-18 12:01:56 +01:00
Tools-Demos Python 3.12.8 2024-12-03 19:42:41 +01:00
Windows Python 3.12.8 2024-12-03 19:42:41 +01:00