From 48a7f6d487862a392bad65e9e2797e6c4874f8cb Mon Sep 17 00:00:00 2001 From: Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> Date: Sat, 10 Dec 2022 19:49:11 +0100 Subject: 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) --- fuzz/fuzz_common_code.h | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 fuzz/fuzz_common_code.h (limited to 'fuzz/fuzz_common_code.h') diff --git a/fuzz/fuzz_common_code.h b/fuzz/fuzz_common_code.h new file mode 100644 index 000000000..5225446ad --- /dev/null +++ b/fuzz/fuzz_common_code.h @@ -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 -- cgit v1.2.3