From 54b4f001ce2d97dccc803ffad953824f9ac33455 Mon Sep 17 00:00:00 2001 From: Bhargava Shastry Date: Thu, 30 May 2019 12:38:23 +0200 Subject: ossfuzz: Fix expr target build failure Google oss-fuzz reported a build failure for the OVN expression parser. Upon investigation, it turned out that the expr_parse_target fuzzer was not being run by Google due to the said failure. The root cause of the build failure turned out to be a change in the definition of the expr_parse_string() API. Now, this API accepts an additional parameter of type struct sset * that points to the set of address set referenced which may be NULL if unused. This patch adds this additional parameter to expr_parse_string() setting the pointer to the set of address set referenced to NULL. Once this patch is applied, ossfuzz's expr_parse_target should build and subsequently be fuzzed. CC: Han Zhou Fixes: 43e6900a7991 ("ovn-controller: Maintain resource references for logical flows.") Signed-off-by: Bhargava Shastry Signed-off-by: Ben Pfaff --- tests/oss-fuzz/expr_parse_target.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/oss-fuzz') diff --git a/tests/oss-fuzz/expr_parse_target.c b/tests/oss-fuzz/expr_parse_target.c index 1fdd3895b..7416421b8 100644 --- a/tests/oss-fuzz/expr_parse_target.c +++ b/tests/oss-fuzz/expr_parse_target.c @@ -359,7 +359,7 @@ test_parse_expr(const char *input) simap_put(&ports, "lsp3", 0x13); expr = expr_parse_string(input, &symtab, &addr_sets, - &port_groups, &error); + &port_groups, NULL, &error); if (!error) { expr = expr_annotate(expr, &symtab, &error); } -- cgit v1.2.1