fuzz: some enhancements (#1827)

Load some custom configuration (like in the unit tests) and factorize some
(fuzzing) common code.

There is no way to pass file paths to the fuzzers as parameters. The safe
solution seems to be to load them from the process working dir. Anyway,
missing file is not a blocking error.

Remove some dead code (found looking at the coverage report)
This commit is contained in:
Ivan Nardi
2022-12-10 19:49:11 +01:00
committed by GitHub
parent 8c7071e040
commit 48a7f6d487
27 changed files with 74 additions and 112 deletions
+9
View File
@@ -0,0 +1,9 @@
#ifndef __FUZZ_COMMON_CODE_H__
#define __FUZZ_COMMON_CODE_H__
#include "ndpi_api.h"
void fuzz_init_detection_module(struct ndpi_detection_module_struct **ndpi_info_mod,
int enable_log);
#endif