diff options
author | Gary Lockyer <gary@catalyst.net.nz> | 2019-02-19 10:24:38 +1300 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2019-02-26 12:15:12 +0100 |
commit | c6ec3fc6d0f47885f4ce4fa89ac5644167a7dab0 (patch) | |
tree | 4e6c4ef06a37a9831101871bd6cc6a4d20c18096 /lib/ldb/wscript | |
parent | 8ddaf853404f3cddef84b77b38951526d73ffbda (diff) | |
download | samba-c6ec3fc6d0f47885f4ce4fa89ac5644167a7dab0.tar.gz |
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>
Diffstat (limited to 'lib/ldb/wscript')
-rw-r--r-- | lib/ldb/wscript | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/ldb/wscript b/lib/ldb/wscript index 6d5be7a87be..d61589f74b0 100644 --- a/lib/ldb/wscript +++ b/lib/ldb/wscript @@ -363,6 +363,11 @@ def build(bld): deps='cmocka ldb', install=False) + bld.SAMBA_BINARY('ldb_match_test', + source='tests/ldb_match_test.c', + deps='cmocka ldb', + install=False) + def test(ctx): '''run ldb testsuite''' import Utils, samba_utils, shutil @@ -391,7 +396,8 @@ def test(ctx): cmocka_ret = 0 for test_exe in ['ldb_tdb_mod_op_test', - 'ldb_msg_test']: + 'ldb_msg_test', + 'ldb_match_test']: cmd = os.path.join(Utils.g_module.blddir, test_exe) cmocka_ret = cmocka_ret or samba_utils.RUN_COMMAND(cmd) |