summaryrefslogtreecommitdiffstats
path: root/meta-python/recipes-devtools/python/python3-twisted/CVE-2022-24801-9.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-python/recipes-devtools/python/python3-twisted/CVE-2022-24801-9.patch')
-rw-r--r--meta-python/recipes-devtools/python/python3-twisted/CVE-2022-24801-9.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python3-twisted/CVE-2022-24801-9.patch b/meta-python/recipes-devtools/python/python3-twisted/CVE-2022-24801-9.patch
new file mode 100644
index 0000000000..e49afde74b
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-twisted/CVE-2022-24801-9.patch
@@ -0,0 +1,25 @@
1From 349771026e1eb80cab7a19ceb8b80aa6d1bb3184 Mon Sep 17 00:00:00 2001
2From: Tom Most <twm@freecog.net>
3Date: Fri, 1 Apr 2022 20:47:59 -0700
4Subject: [PATCH] Address review feedback
5
6Upstream-Status: Backport [https://github.com/twisted/twisted/commit/2bbd6c89110f0d44d2bb109c14d787f65bca9df8]
7CVE: CVE-2022-24801
8Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
9---
10 src/twisted/web/http.py | 6 +++---
11 1 file changed, 3 insertions(+), 3 deletions(-)
12
13diff --git a/src/twisted/web/http.py b/src/twisted/web/http.py
14index 81df437..4a2ce1d 100644
15--- a/src/twisted/web/http.py
16+++ b/src/twisted/web/http.py
17@@ -420,7 +420,7 @@ def _ishexdigits(b: bytes) -> bool:
18 for c in b:
19 if c not in b"0123456789abcdefABCDEF":
20 return False
21- return bool(b)
22+ return b != b""
23
24
25 def _hexint(b: bytes) -> int: