Matej Cepl
2db1a650e2
ReDos via excessive backtracking while parsing header values (bsc#1230227, CVE-2024-6232). OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/python?expand=0&rev=425
20 lines
855 B
Diff
20 lines
855 B
Diff
---
|
|
Lib/test/test_ssl.py | 6 +++---
|
|
1 file changed, 3 insertions(+), 3 deletions(-)
|
|
|
|
--- a/Lib/test/test_ssl.py
|
|
+++ b/Lib/test/test_ssl.py
|
|
@@ -1344,9 +1344,9 @@ class ContextTests(unittest.TestCase):
|
|
extra_env = {}
|
|
# Omitting it leaves verification on
|
|
assert_python_ok("-c", https_is_verified, **extra_env)
|
|
- # Setting it to zero turns verification off
|
|
- extra_env[ssl._https_verify_envvar] = "0"
|
|
- assert_python_ok("-c", https_is_not_verified, **extra_env)
|
|
+ ## # Setting it to zero turns verification off
|
|
+ ## extra_env[ssl._https_verify_envvar] = "0"
|
|
+ ## assert_python_ok("-c", https_is_not_verified, **extra_env)
|
|
# Any other value should also leave it on
|
|
for setting in ("", "1", "enabled", "foo"):
|
|
extra_env[ssl._https_verify_envvar] = setting
|