summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>2021-02-11 16:28:43 +1300
committerStefan Metzmacher <metze@samba.org>2021-03-24 12:05:32 +0000
commit9532c44baea130db74f866e1472cb871936cd3dd (patch)
tree234f26cba0b57867322f8daab5d82c16a469b513 /python
parentdbb3e65f7e382adf5fa6a6afb3d8684aca3f201a (diff)
downloadsamba-9532c44baea130db74f866e1472cb871936cd3dd.tar.gz
CVE-2020-27840: pytests: move Dn.validate test to ldb
We had the test in the Samba Python segfault suite because a) the signal catching infrastructure was there, and b) the ldb tests lack Samba's knownfail mechanism, which allowed us to assert the failure. BUG: https://bugzilla.samba.org/show_bug.cgi?id=14595 Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'python')
-rw-r--r--python/samba/tests/segfault.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/python/samba/tests/segfault.py b/python/samba/tests/segfault.py
index cf450a4a1aa..c6e17ed6ead 100644
--- a/python/samba/tests/segfault.py
+++ b/python/samba/tests/segfault.py
@@ -184,9 +184,3 @@ class SegfaultTests(samba.tests.TestCase):
def test_dcerpc_idl_inline_arrays(self):
"""Inline arrays were incorrectly handled."""
dnsserver.DNS_RPC_SERVER_INFO_DOTNET().pExtensions
-
- @segfault_detector
- def test_ldb_dn_explode_crash(self):
- for i in range(106, 550, 5):
- dn = ldb.Dn(ldb.Ldb(), "a=b%s,c= " % (' ' * i))
- dn.validate()