mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-12 01:58:17 +00:00
solve linking error when python is not available
This commit is contained in:
@ -647,8 +647,6 @@ extern PyObject* py_functions[PY_FUNC_COUNT];
|
||||
/* Custom mutators */
|
||||
void setup_custom_mutator(void);
|
||||
void destroy_custom_mutator(void);
|
||||
void load_custom_mutator(const char*);
|
||||
void load_custom_mutator_py(const char*);
|
||||
u8 trim_case_custom(char** argv, struct queue_entry* q, u8* in_buf);
|
||||
|
||||
/* Python */
|
||||
|
@ -25,6 +25,11 @@
|
||||
|
||||
#include "afl-fuzz.h"
|
||||
|
||||
void load_custom_mutator(const char*);
|
||||
#ifdef USE_PYTHON
|
||||
void load_custom_mutator_py(const char*);
|
||||
#endif
|
||||
|
||||
void setup_custom_mutator(void) {
|
||||
|
||||
/* Try mutator library first */
|
||||
@ -286,6 +291,7 @@ abort_trimming:
|
||||
|
||||
}
|
||||
|
||||
#ifdef USE_PYTHON
|
||||
void load_custom_mutator_py(const char* module_name) {
|
||||
|
||||
mutator = ck_alloc(sizeof(struct custom_mutator));
|
||||
@ -325,3 +331,4 @@ void load_custom_mutator_py(const char* module_name) {
|
||||
mutator->afl_custom_init(UR(0xFFFFFFFF));
|
||||
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user