mirror of
https://github.com/samba-team/samba.git
synced 2025-07-05 04:59:08 +03:00
CVE-2020-27840: pytests:segfault: add ldb.Dn validate test
ldb.Dn.validate wraps ldb_dn_explode. 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>
This commit is contained in:
committed by
Stefan Metzmacher
parent
1fe8c790b2
commit
1996b79f37
@ -184,3 +184,9 @@ 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()
|
||||
|
Reference in New Issue
Block a user