CVE-2019-3824 ldb: Add tests for ldb_wildcard_match
commit47b2344bdb126964a314cdc9e938ad81023216f5
authorGary Lockyer <gary@catalyst.net.nz>
Mon, 18 Feb 2019 21:24:38 +0000 (19 10:24 +1300)
committerStefan Metzmacher <metze@samba.org>
Tue, 26 Feb 2019 06:50:16 +0000 (26 07:50 +0100)
treec844c6b93b49225fc4efc024112d56ab1f149ac1
parent2a88a47b9f8460be4b46d4dce7ac9fc4a53c86a7
CVE-2019-3824 ldb: Add tests for ldb_wildcard_match

Add cmocka tests for ldb_wildcard_match.

Running test_wildcard_match under valgrind reproduces
 CVE-2019-3824 out of bounds read in wildcard compare (bug 13773)

 valgrind --suppressions=lib/ldb/tests/ldb_match_test.valgrind\
          bin/ldb_match_test

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

Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
lib/ldb/tests/ldb_match_test.c [new file with mode: 0644]
lib/ldb/tests/ldb_match_test.valgrind [new file with mode: 0644]
lib/ldb/wscript