fuzz: fuzz_config: we need bigegr inputs (#2285)
This commit is contained in:
@@ -29,7 +29,6 @@ int ndpi_load_domain_suffixes(struct ndpi_detection_module_struct *ndpi_str,
|
||||
char *public_suffix_list_path) {
|
||||
char buf[256], *line;
|
||||
FILE *fd;
|
||||
bool do_trace = false;
|
||||
u_int num_domains = 0;
|
||||
|
||||
if(public_suffix_list_path == NULL)
|
||||
@@ -64,16 +63,16 @@ int ndpi_load_domain_suffixes(struct ndpi_detection_module_struct *ndpi_str,
|
||||
|
||||
if(!ndpi_domain_classify_add(ndpi_str->public_domain_suffixes,
|
||||
1 /* dummy */, &line[offset])) {
|
||||
if(do_trace) NDPI_LOG_ERR(ndpi_str, "Error while processing domain %s\n", &line[offset]);
|
||||
NDPI_LOG_ERR(ndpi_str, "Error while processing domain %s\n", &line[offset]);
|
||||
} else
|
||||
num_domains++;
|
||||
}
|
||||
|
||||
if(!ndpi_domain_classify_finalize(ndpi_str->public_domain_suffixes)) {
|
||||
if(do_trace) NDPI_LOG_ERR(ndpi_str, "Error while finalizing domain processing\n");
|
||||
NDPI_LOG_ERR(ndpi_str, "Error while finalizing domain processing\n");
|
||||
}
|
||||
|
||||
if(do_trace) NDPI_LOG_ERR(ndpi_str, "Loaded %u domains\n", num_domains);
|
||||
NDPI_LOG_DBG(ndpi_str, "Loaded %u domains\n", num_domains);
|
||||
|
||||
return(0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user