summaryrefslogtreecommitdiffstats
path: root/meta-python/recipes-devtools/python/python3-waitress/CVE-2024-49769-3.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-python/recipes-devtools/python/python3-waitress/CVE-2024-49769-3.patch')
-rw-r--r--meta-python/recipes-devtools/python/python3-waitress/CVE-2024-49769-3.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python3-waitress/CVE-2024-49769-3.patch b/meta-python/recipes-devtools/python/python3-waitress/CVE-2024-49769-3.patch
new file mode 100644
index 0000000000..165ede95c7
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-waitress/CVE-2024-49769-3.patch
@@ -0,0 +1,34 @@
1From 28377c0e0fdd8669fb250e69745caf1c27ba541b Mon Sep 17 00:00:00 2001
2From: Delta Regeer <bertjw@regeer.org>
3Date: Sun, 3 Mar 2024 16:23:33 -0700
4Subject: [PATCH] Remove test for getpeername()
5
6CVE: CVE-2024-49769
7Upstream-Status: Backport [https://github.com/Pylons/waitress/commit/86c680df4e4bdd40c78dec771cddcee059e802c4]
8Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
9---
10 tests/test_wasyncore.py | 11 -----------
11 1 file changed, 11 deletions(-)
12
13diff --git a/tests/test_wasyncore.py b/tests/test_wasyncore.py
14index e833c7e..5f38bd9 100644
15--- a/tests/test_wasyncore.py
16+++ b/tests/test_wasyncore.py
17@@ -1451,17 +1451,6 @@ class Test_dispatcher(unittest.TestCase):
18
19 return dispatcher(sock=sock, map=map)
20
21- def test_unexpected_getpeername_exc(self):
22- sock = dummysocket()
23-
24- def getpeername():
25- raise OSError(errno.EBADF)
26-
27- map = {}
28- sock.getpeername = getpeername
29- self.assertRaises(socket.error, self._makeOne, sock=sock, map=map)
30- self.assertEqual(map, {})
31-
32 def test___repr__accepting(self):
33 sock = dummysocket()
34 map = {}