diff options
author | Dominik Maier <domenukk@gmail.com> | 2022-06-28 11:45:22 +0200 |
---|---|---|
committer | Dominik Maier <domenukk@gmail.com> | 2022-06-28 11:45:22 +0200 |
commit | bb509765dfb96b38d5ed781843bfca1660ed9bf5 (patch) | |
tree | 420ebc84e455817e4bc9bd10187bcd6fd7566867 | |
parent | 6705953a491e43880c57aa670b475b52c716f216 (diff) | |
download | afl++-bb509765dfb96b38d5ed781843bfca1660ed9bf5.tar.gz |
added back missing memcpy to python mutators
-rw-r--r-- | src/afl-fuzz-python.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/afl-fuzz-python.c b/src/afl-fuzz-python.c index 5909cd52..0231d2cd 100644 --- a/src/afl-fuzz-python.c +++ b/src/afl-fuzz-python.c @@ -763,6 +763,8 @@ size_t havoc_mutation_py(void *py_mutator, u8 *buf, size_t buf_size, } + if (mutated_size) { memcpy(*out_buf, bytes, mutated_size); } + Py_DECREF(py_value); return mutated_size; |