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/tests/ldb_match_test.valgrind | |
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/tests/ldb_match_test.valgrind')
-rw-r--r-- | lib/ldb/tests/ldb_match_test.valgrind | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/ldb/tests/ldb_match_test.valgrind b/lib/ldb/tests/ldb_match_test.valgrind new file mode 100644 index 00000000000..660bd5a6b46 --- /dev/null +++ b/lib/ldb/tests/ldb_match_test.valgrind @@ -0,0 +1,16 @@ +{ + Memory allocated in set-up + Memcheck:Leak + match-leak-kinds: possible + fun:malloc + ... + fun:setup +} +{ + Memory allocated by ldb_init + Memcheck:Leak + match-leak-kinds: possible + fun:malloc + ... + fun:ldb_init +} |