enabled Wextra, fixed bugs

This commit is contained in:
Dominik Maier
2020-08-07 16:55:58 +02:00
parent 4a6d66d8c5
commit 22d3a5e90a
15 changed files with 110 additions and 89 deletions

View File

@ -30,6 +30,9 @@
static void *unsupported(afl_state_t *afl, unsigned int seed) {
(void)afl;
(void)seed;
FATAL("Python Mutator cannot be called twice yet");
return NULL;
@ -111,6 +114,8 @@ static size_t fuzz_py(void *py_mutator, u8 *buf, size_t buf_size, u8 **out_buf,
static py_mutator_t *init_py_module(afl_state_t *afl, u8 *module_name) {
(void)afl;
if (!module_name) { return NULL; }
py_mutator_t *py = calloc(1, sizeof(py_mutator_t));
@ -247,6 +252,8 @@ void finalize_py_module(void *py_mutator) {
static void init_py(afl_state_t *afl, py_mutator_t *py_mutator,
unsigned int seed) {
(void)afl;
PyObject *py_args, *py_value;
/* Provide the init function a seed for the Python RNG */