aboutsummaryrefslogtreecommitdiff
path: root/fuzz
diff options
context:
space:
mode:
authorIvan Nardi <12729895+IvanNardi@users.noreply.github.com>2024-04-05 21:02:54 +0200
committerGitHub <noreply@github.com>2024-04-05 21:02:54 +0200
commit700637a162ba0d3350cff0ff16331ffaa6c2f841 (patch)
tree03c9d4eb114e3281e1b4f5704fbd8d9328dbc6c1 /fuzz
parent0f77f49b770a379bf54870a17462c73ae4db0dca (diff)
fuzzing: extend fuzzing coverage (#2371)
Diffstat (limited to 'fuzz')
-rw-r--r--fuzz/fuzz_ndpi_reader.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fuzz/fuzz_ndpi_reader.c b/fuzz/fuzz_ndpi_reader.c
index 9d53918e3..5bd0662f1 100644
--- a/fuzz/fuzz_ndpi_reader.c
+++ b/fuzz/fuzz_ndpi_reader.c
@@ -56,6 +56,8 @@ int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {
ndpi_set_config(workflow->ndpi_struct, NULL, "log.level", "3");
ndpi_set_config(workflow->ndpi_struct, "all", "log", "1");
+ ndpi_load_domain_suffixes(workflow->ndpi_struct, "public_suffix_list.dat");
+ ndpi_load_categories_dir(workflow->ndpi_struct, "./lists/");
ndpi_load_protocols_file(workflow->ndpi_struct, "protos.txt");
ndpi_load_categories_file(workflow->ndpi_struct, "categories.txt", NULL);
ndpi_load_risk_domain_file(workflow->ndpi_struct, "risky_domains.txt");
@@ -69,6 +71,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {
ndpi_set_config(workflow->ndpi_struct, NULL, "flow.track_payload", "1");
ndpi_set_config(workflow->ndpi_struct, NULL, "tcp_ack_payload_heuristic", "1");
ndpi_set_config(workflow->ndpi_struct, "tls", "application_blocks_tracking", "1");
+ ndpi_set_config(workflow->ndpi_struct, "stun", "max_packets_extra_dissection", "255");
ndpi_finalize_initialization(workflow->ndpi_struct);