1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
samba-mirror/lib/ldb/tests/ldb_match_test.valgrind
Gary Lockyer 45b75db50f 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>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2019-02-25 21:26:12 +01:00

17 lines
235 B
Plaintext

{
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
}