CVE-2021-20277 ldb: Remove tests from ldb_match_test that do not pass
authorAndrew Bartlett <abartlet@samba.org>
Thu, 11 Mar 2021 22:51:56 +0000 (11:51 +1300)
committerKarolin Seeger <kseeger@samba.org>
Fri, 19 Mar 2021 07:51:01 +0000 (08:51 +0100)
This reverts some of the backport of 33a95a1e75b85e9795c4490b78ead2162e2a1f47

This is done here rather than squashed in the cherry-pick of the expanded testsuite
because it allows this commit to be simply reverted for the backport of bug 14044
if this lands first, or to be dropped if bug 14044 lands first.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14655

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
lib/ldb/tests/ldb_match_test.c

index ba6ea56be158bc39296e7f66fdc929add5120a4a..fbf4106fa78612aacf610a87bba4b78bad8f7eaa 100644 (file)
@@ -191,11 +191,9 @@ static void test_wildcard_match(void **state)
                TEST_ENTRY("The value.......end", "*e*d*", true, true),
                TEST_ENTRY("end", "*e*d*", true, true),
                TEST_ENTRY("end", "  *e*d*", true, true),
-               TEST_ENTRY("1.0.0.0.0.0.0.0aaaaaaaaaaaa", "*aaaaa", true, true),
                TEST_ENTRY("1.0..0.0.0.0.0.0.0aAaaaAAAAAAA", "*a", true,  true),
                TEST_ENTRY("1.0.0.0.0.0.0.0.0.0.0aaaa", "*aaaaa", false, true),
                TEST_ENTRY("1.0.0.0.0.0.0.0.0.0.0", "*0.0", true, true),
-               TEST_ENTRY("1.0.0.0.0.0.0.0.0.0.0", "*0.0.0", true, true),
                TEST_ENTRY("1.0.0.0.0.0.0.0.0.0", "1*0*0*0*0*0*0*0*0*0", true,
                           true),
                TEST_ENTRY("1.0.0.0.0.0.0.0.0", "1*0*0*0*0*0*0*0*0*0", false,