fuzz: add fuzzers to test reader_util code (#2080)

This commit is contained in:
Ivan Nardi
2023-09-10 15:07:52 +02:00
committed by GitHub
parent 0aa1cf7245
commit 2a0052f25e
217 changed files with 260 additions and 6 deletions
+4 -1
View File
@@ -35,7 +35,10 @@
ndpi_domain_classify* ndpi_domain_classify_alloc() {
int i;
ndpi_domain_classify *cat = (ndpi_domain_classify*)ndpi_malloc(sizeof(ndpi_domain_classify));
if(!cat)
return NULL;
for(i=0; i<MAX_NUM_NDPI_DOMAIN_CLASSIFICATIONS; i++)
cat->classes[i].class_id = 0, cat->classes[i].domains = NULL;