From a3161b902e36185631e624e41eb1ae04d32c302b Mon Sep 17 00:00:00 2001 From: Andrea Fioraldi Date: Sun, 8 Mar 2020 22:02:57 +0100 Subject: fix null ptr deferef in pre_save python mutator call --- src/afl-fuzz-python.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/afl-fuzz-python.c') diff --git a/src/afl-fuzz-python.c b/src/afl-fuzz-python.c index 8ceb6957..4e72905d 100644 --- a/src/afl-fuzz-python.c +++ b/src/afl-fuzz-python.c @@ -244,7 +244,7 @@ size_t pre_save_py(u8* buf, size_t buf_size, u8** out_buf) { size_t out_buf_size; PyObject *py_args, *py_value; - py_args = PyTuple_New(2); + py_args = PyTuple_New(1); py_value = PyByteArray_FromStringAndSize(buf, buf_size); if (!py_value) { -- cgit 1.4.1