fuzz: add fuzzers to test reader_util code (#2080)
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user