about summary refs log tree commit diff
diff options
context:
space:
mode:
authorvanhauser-thc <vh@thc.org>2021-04-13 11:26:27 +0200
committervanhauser-thc <vh@thc.org>2021-04-13 11:26:27 +0200
commit50bb931ea604a83784609dc71934a4a8f8feb156 (patch)
tree4bd51d3b4968e6c4bd2eb59c508116f3ccd7ea18
parent0c06371cda94e916f62b6456e86b849333acb338 (diff)
downloadafl++-50bb931ea604a83784609dc71934a4a8f8feb156.tar.gz
ui custom mutator only display
-rw-r--r--include/afl-fuzz.h1
-rw-r--r--src/afl-fuzz-stats.c8
2 files changed, 6 insertions, 3 deletions
diff --git a/include/afl-fuzz.h b/include/afl-fuzz.h
index 40a7fc85..325168f2 100644
--- a/include/afl-fuzz.h
+++ b/include/afl-fuzz.h
@@ -483,7 +483,6 @@ typedef struct afl_state {
       no_unlink,                        /* do not unlink cur_input          */
       debug,                            /* Debug mode                       */
       custom_only,                      /* Custom mutator only mode         */
-      python_only,                      /* Python-only mode                 */
       is_main_node,                     /* if this is the main node         */
       is_secondary_node;                /* if this is a secondary instance  */
 
diff --git a/src/afl-fuzz-stats.c b/src/afl-fuzz-stats.c
index ed4787ea..e0e24a18 100644
--- a/src/afl-fuzz-stats.c
+++ b/src/afl-fuzz-stats.c
@@ -861,7 +861,11 @@ void show_stats(afl_state_t *afl) {
        " fuzzing strategy yields " bSTG bH10 bHT bH10 bH5 bHB bH bSTOP cCYA
        " path geometry " bSTG bH5 bH2 bVL "\n");
 
-  if (likely(afl->skip_deterministic)) {
+  if (unlikely(afl->custom_only)) {
+
+    strcpy(tmp, "disabled (custom mutator only mode)");
+
+  } else if (likely(afl->skip_deterministic)) {
 
     strcpy(tmp, "disabled (default, enable with -D)");
 
@@ -939,7 +943,7 @@ void show_stats(afl_state_t *afl) {
             u_stringify_int(IB(4), afl->stage_finds[STAGE_EXTRAS_AO]),
             u_stringify_int(IB(5), afl->stage_cycles[STAGE_EXTRAS_AO]));
 
-  } else if (unlikely(!afl->extras_cnt)) {
+  } else if (unlikely(!afl->extras_cnt || afl->custom_only)) {
 
     strcpy(tmp, "n/a");