diff options
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.patch | 25 |
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 @@ | |||
| 1 | From 349771026e1eb80cab7a19ceb8b80aa6d1bb3184 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Tom Most <twm@freecog.net> | ||
| 3 | Date: Fri, 1 Apr 2022 20:47:59 -0700 | ||
| 4 | Subject: [PATCH] Address review feedback | ||
| 5 | |||
| 6 | Upstream-Status: Backport [https://github.com/twisted/twisted/commit/2bbd6c89110f0d44d2bb109c14d787f65bca9df8] | ||
| 7 | CVE: CVE-2022-24801 | ||
| 8 | Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com> | ||
| 9 | --- | ||
| 10 | src/twisted/web/http.py | 6 +++--- | ||
| 11 | 1 file changed, 3 insertions(+), 3 deletions(-) | ||
| 12 | |||
| 13 | diff --git a/src/twisted/web/http.py b/src/twisted/web/http.py | ||
| 14 | index 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: | ||
