fuzz: extend fuzzing coverage (#2281)

This commit is contained in:
Ivan Nardi
2024-01-24 21:16:58 +01:00
committed by GitHub
parent 7a83a8dc91
commit d577508727
139 changed files with 259 additions and 235 deletions
+4
View File
@@ -82,6 +82,8 @@ int ndpi_load_domain_suffixes(struct ndpi_detection_module_struct *ndpi_str,
const char* ndpi_get_host_domain_suffix(struct ndpi_detection_module_struct *ndpi_str,
const char *hostname) {
if(!ndpi_str)
return NULL;
if(ndpi_str->public_domain_suffixes == NULL)
return(hostname);
else {
@@ -96,6 +98,8 @@ const char* ndpi_get_host_domain_suffix(struct ndpi_detection_module_struct *ndp
const char* ndpi_get_host_domain(struct ndpi_detection_module_struct *ndpi_str,
const char *hostname) {
if(!ndpi_str)
return NULL;
if(ndpi_str->public_domain_suffixes == NULL)
return(hostname);
else {