blob: c5e4fb9c9385b2798e8373f326d69e2b0bff779f (
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
void fuzz_init_detection_module(struct ndpi_detection_module_struct **ndpi_info_mod);
/* To allow memory allocation failures */
void fuzz_set_alloc_callbacks(void);
void fuzz_set_alloc_seed(int seed);
void fuzz_set_alloc_callbacks_and_seed(int seed);
FILE *buffer_to_file(const uint8_t *data, size_t size);
#ifdef __cplusplus
}
#endif
#endif
|