diff options
Diffstat (limited to 'fuzz/fuzz_common_code.h')
-rw-r--r-- | fuzz/fuzz_common_code.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/fuzz/fuzz_common_code.h b/fuzz/fuzz_common_code.h index 5225446ad..9f26ea060 100644 --- a/fuzz/fuzz_common_code.h +++ b/fuzz/fuzz_common_code.h @@ -3,7 +3,22 @@ #include "ndpi_api.h" +#ifdef __cplusplus +extern "C" +{ +#endif + +#ifdef ENABLE_MEM_ALLOC_FAILURES +void *malloc_wrapper(size_t size); +void free_wrapper(void *freeable); +void set_mem_alloc_state(int value); +#endif + void fuzz_init_detection_module(struct ndpi_detection_module_struct **ndpi_info_mod, int enable_log); +#ifdef __cplusplus +} +#endif + #endif |