blob: a5bffbd5a5ee8caa7b0bc2d7ca69350d6e79ed65 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
From f1cb4e616e9f23b4dd044a6db44365060950c64f Mon Sep 17 00:00:00 2001
From: Tom Most <twm@freecog.net>
Date: Mon, 22 Jul 2024 22:21:10 -0700
Subject: [PATCH] Use chunking in the pipelining tests
CVE: CVE-2024-41671
Upstream-Status: Backport [https://github.com/twisted/twisted/commit/f1cb4e616e9f23b4dd044a6db44365060950c64f]
Signed-off-by: Soumya Sambu <soumya.sambu@windriver.com>
---
src/twisted/web/test/test_http.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/twisted/web/test/test_http.py b/src/twisted/web/test/test_http.py
index 7ffea4e..5d88ff1 100644
--- a/src/twisted/web/test/test_http.py
+++ b/src/twisted/web/test/test_http.py
@@ -575,9 +575,11 @@ class PipeliningBodyTests(unittest.TestCase, ResponseTestMixin):
b"Content-Length: 10\r\n"
b"\r\n"
b"0123456789POST / HTTP/1.1\r\n"
- b"Content-Length: 10\r\n"
+ b"Transfer-Encoding: chunked\r\n"
b"\r\n"
+ b"a\r\n"
b"0123456789"
+ b"0\r\n"
)
expectedResponses = [
--
2.40.0
|