aboutsummaryrefslogtreecommitdiff
path: root/fuzz/fuzz_common_code.h
blob: 9f26ea060965f6f77b4cf027bcdc89e7f0517af3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef __FUZZ_COMMON_CODE_H__
#define __FUZZ_COMMON_CODE_H__

#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