lib/fuzzing: Fix argument order to ldb_filter_from_tree in fuzz_ldb_parse_tree
authorAndrew Bartlett <abartlet@samba.org>
Wed, 11 Dec 2019 01:09:25 +0000 (14:09 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 11 Dec 2019 04:21:28 +0000 (04:21 +0000)
Found by the oss-fuzz CI tooling.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@samba.org>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Wed Dec 11 04:21:28 UTC 2019 on sn-devel-184

lib/fuzzing/fuzz_ldb_parse_tree.c

index 01dbc124e2f1240f72d7674439d796a95ea5bbec..e22dd776110a0b3dfa4a10a09d9c222cadbae8cd 100644 (file)
@@ -44,7 +44,7 @@ int LLVMFuzzerTestOneInput(uint8_t *buf, size_t len)
 
        tree = ldb_parse_tree(mem_ctx, filter);
 
-       (void)ldb_filter_from_tree(tree, mem_ctx);
+       (void)ldb_filter_from_tree(mem_ctx, tree);
 
 out:
        talloc_free(mem_ctx);