mirror of
https://github.com/vel21ripn/nDPI.git
synced 2026-05-02 08:50:18 +00:00
24 lines
472 B
C
24 lines
472 B
C
#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
|