about summary refs log tree commit diff
diff options
context:
space:
mode:
authorvanhauser-thc <vh@thc.org>2021-05-25 22:04:25 +0200
committervanhauser-thc <vh@thc.org>2021-05-25 22:04:25 +0200
commit3b93729213de46a3008709bd8170d5593394d8cb (patch)
treea42556c623c526be4e89e9d752b036cc6c34f430
parent314c0357a7619087d00b06a4567b97f4a30bfbf9 (diff)
downloadafl++-3b93729213de46a3008709bd8170d5593394d8cb.tar.gz
tweaks
-rw-r--r--docs/Changelog.md4
-rw-r--r--docs/custom_mutators.md3
-rw-r--r--src/afl-fuzz-python.c2
3 files changed, 6 insertions, 3 deletions
diff --git a/docs/Changelog.md b/docs/Changelog.md
index f8831ff1..175c6c43 100644
--- a/docs/Changelog.md
+++ b/docs/Changelog.md
@@ -35,8 +35,8 @@ sending a mail to <afl-users+subscribe@googlegroups.com>.
       afl++ ignores these and uses them for splicing instead.
     - added AFL_EXIT_ON_TIME env that will make afl-fuzz exit fuzzing
       after no new paths have been found for n seconds
-    - when AFL_FAST_CAL is set a variable path will now be calibrated
-      8 times instead of 40
+    - when AFL_FAST_CAL is set a variable path will no be calibrated
+      8 times instead of originally 40. Long calibration is now 20.
     - added AFL_TRY_AFFINITY to try to bind to CPUs but don't error if
       it fails
   - afl-cc:
diff --git a/docs/custom_mutators.md b/docs/custom_mutators.md
index 9d5381e8..3e3ae01d 100644
--- a/docs/custom_mutators.md
+++ b/docs/custom_mutators.md
@@ -92,6 +92,9 @@ def queue_new_entry(filename_new_queue, filename_orig_queue):
 
 def introspection():
     return string
+
+def deinit():  # optional for Python
+    pass
 ```
 
 ### Custom Mutation
diff --git a/src/afl-fuzz-python.c b/src/afl-fuzz-python.c
index 8760194c..3aa97635 100644
--- a/src/afl-fuzz-python.c
+++ b/src/afl-fuzz-python.c
@@ -212,7 +212,7 @@ static py_mutator_t *init_py_module(afl_state_t *afl, u8 *module_name) {
         PyObject_GetAttrString(py_module, "introspection");
     py_functions[PY_FUNC_DEINIT] = PyObject_GetAttrString(py_module, "deinit");
     if (!py_functions[PY_FUNC_DEINIT])
-      FATAL("deinit function not found in python module");
+      WARNF("deinit function not found in python module");
 
     for (py_idx = 0; py_idx < PY_FUNC_COUNT; ++py_idx) {