aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Nardi <12729895+IvanNardi@users.noreply.github.com>2023-09-10 21:30:26 +0200
committerGitHub <noreply@github.com>2023-09-10 21:30:26 +0200
commit8e6500a0da6798e2f2730ff88681c954ae7216d4 (patch)
tree6d9aae1136bc62a03cf670f8caf1a2faeea321c0
parentef6085370f75ae7c6c53bfbd0e36c588483a5047 (diff)
fuzz: extend fuzzing coverage (#2083)
-rw-r--r--fuzz/fuzz_common_code.c1
-rw-r--r--tests/ossfuzz.sh2
2 files changed, 3 insertions, 0 deletions
diff --git a/fuzz/fuzz_common_code.c b/fuzz/fuzz_common_code.c
index 554c82336..bc4d32155 100644
--- a/fuzz/fuzz_common_code.c
+++ b/fuzz/fuzz_common_code.c
@@ -49,6 +49,7 @@ void fuzz_init_detection_module(struct ndpi_detection_module_struct **ndpi_info_
ndpi_set_log_level(*ndpi_info_mod, 4);
ndpi_set_debug_bitmask(*ndpi_info_mod, debug_bitmask);
+ ndpi_load_categories_dir(*ndpi_info_mod, "./lists/");
ndpi_load_protocols_file(*ndpi_info_mod, "protos.txt");
ndpi_load_categories_file(*ndpi_info_mod, "categories.txt", NULL);
ndpi_load_risk_domain_file(*ndpi_info_mod, "risky_domains.txt");
diff --git a/tests/ossfuzz.sh b/tests/ossfuzz.sh
index 723c675e0..5d7f759f4 100644
--- a/tests/ossfuzz.sh
+++ b/tests/ossfuzz.sh
@@ -60,3 +60,5 @@ cp example/sha1_fingerprints.csv $OUT/
cp fuzz/ipv4_addresses.txt $OUT/
cp fuzz/bd_param.txt $OUT/
cp fuzz/splt_param.txt $OUT/
+mkdir -p $OUT/lists
+cp lists/*.list $OUT/lists