about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAndrea Fioraldi <andreafioraldi@gmail.com>2020-03-08 22:02:57 +0100
committerAndrea Fioraldi <andreafioraldi@gmail.com>2020-03-08 22:02:57 +0100
commita3161b902e36185631e624e41eb1ae04d32c302b (patch)
tree4c94ca0ea3b7c6668336dd7c528abd0f13f28576
parent783f3b0957094fd04b5a9cde085359c26be1fbb4 (diff)
downloadafl++-a3161b902e36185631e624e41eb1ae04d32c302b.tar.gz
fix null ptr deferef in pre_save python mutator call
-rw-r--r--src/afl-fuzz-python.c2
1 files changed, 1 insertions, 1 deletions
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) {