CVE-2019-3824 ldb: Add tests for ldb_wildcard_match
commitc6ec3fc6d0f47885f4ce4fa89ac5644167a7dab0
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 11:15:12 +0000 (26 12:15 +0100)
tree4e6c4ef06a37a9831101871bd6cc6a4d20c18096
parent8ddaf853404f3cddef84b77b38951526d73ffbda
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