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