We *do* want to have some allocation errors.
Fix some related bugs
Fix: 29be01ef
24 lines
435 B
C
24 lines
435 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,
|
|
int enable_log);
|
|
|
|
/* 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);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|