aboutsummaryrefslogtreecommitdiff
path: root/fuzz/fuzz_common_code.c
diff options
context:
space:
mode:
authorIvan Nardi <12729895+IvanNardi@users.noreply.github.com>2023-12-11 12:48:50 +0100
committerGitHub <noreply@github.com>2023-12-11 12:48:50 +0100
commitadf8982d8ec8a1f84bdf48b0129f5fccbb12e51b (patch)
tree228d72dfcb917f90e544eb42326ece865179de44 /fuzz/fuzz_common_code.c
parent59d476195cb3ac5cf6bd139f43698c3cdc1a8b7a (diff)
fuzz: extend fuzzing coverage (#2205)
Diffstat (limited to 'fuzz/fuzz_common_code.c')
1 files changed, 3 insertions, 2 deletions
diff --git a/fuzz/fuzz_common_code.c b/fuzz/fuzz_common_code.c
index d13b519ce..b48fa9133 100644
--- a/fuzz/fuzz_common_code.c
+++ b/fuzz/fuzz_common_code.c
@@ -42,8 +42,6 @@ void fuzz_init_detection_module(struct ndpi_detection_module_struct **ndpi_info_
if(*ndpi_info_mod == NULL) {
*ndpi_info_mod = ndpi_init_detection_module(prefs);
- NDPI_BITMASK_SET_ALL(all);
- ndpi_set_protocol_detection_bitmask2(*ndpi_info_mod, &all);
NDPI_BITMASK_SET_ALL(debug_bitmask);
ndpi_set_log_level(*ndpi_info_mod, 4);
@@ -56,6 +54,9 @@ void fuzz_init_detection_module(struct ndpi_detection_module_struct **ndpi_info_
ndpi_load_malicious_ja3_file(*ndpi_info_mod, "ja3_fingerprints.csv");
ndpi_load_malicious_sha1_file(*ndpi_info_mod, "sha1_fingerprints.csv");
+ NDPI_BITMASK_SET_ALL(all);
+ ndpi_set_protocol_detection_bitmask2(*ndpi_info_mod, &all);
+
ndpi_finalize_initialization(*ndpi_info_mod);
}
}