summaryrefslogtreecommitdiff
path: root/tests/oss-fuzz
diff options
context:
space:
mode:
authorBhargava Shastry <bshastry@sect.tu-berlin.de>2019-05-30 12:38:23 +0200
committerBen Pfaff <blp@ovn.org>2019-05-31 10:02:36 -0700
commit54b4f001ce2d97dccc803ffad953824f9ac33455 (patch)
treea7d9d4aff4c061a2310992f4d86c6b7f3029693f /tests/oss-fuzz
parent595ce47cd6eefc84386e6b07d0dd46230e39f976 (diff)
downloadopenvswitch-54b4f001ce2d97dccc803ffad953824f9ac33455.tar.gz
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 <hzhou8@ebay.com> Fixes: 43e6900a7991 ("ovn-controller: Maintain resource references for logical flows.") Signed-off-by: Bhargava Shastry <bshastry@sect.tu-berlin.de> Signed-off-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'tests/oss-fuzz')
-rw-r--r--tests/oss-fuzz/expr_parse_target.c2
1 files changed, 1 insertions, 1 deletions
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);
}