mirror of
https://github.com/samba-team/samba.git
synced 2025-07-31 20:22:15 +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):
|
def test_dcerpc_idl_inline_arrays(self):
|
||||||
"""Inline arrays were incorrectly handled."""
|
"""Inline arrays were incorrectly handled."""
|
||||||
dnsserver.DNS_RPC_SERVER_INFO_DOTNET().pExtensions
|
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()
|
||||||
|
@ -1 +1,2 @@
|
|||||||
samba.tests.segfault.samba.tests.segfault.SegfaultTests.test_net_replicate_init__3
|
samba.tests.segfault.samba.tests.segfault.SegfaultTests.test_net_replicate_init__3
|
||||||
|
samba.tests.segfault.samba.tests.segfault.SegfaultTests.test_ldb_dn_explode_crash
|
||||||
|
Reference in New Issue
Block a user