CVE-2019-3824 ldb: Add tests for ldb_wildcard_match
authorGary Lockyer <gary@catalyst.net.nz>
Mon, 18 Feb 2019 21:24:38 +0000 (10:24 +1300)
committerStefan Metzmacher <metze@samba.org>
Tue, 26 Feb 2019 06:51:12 +0000 (07:51 +0100)
commita6b067e00b67cac6f3a36c8ef5edba6fd9b10def
treeee354387a04ace23d3b4f1ab81dc8460676cb1fa
parent2f6b4d11136f042f5c532199389877ed846c6f83
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