aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhexcoder- <heiko@hexco.de>2021-06-04 21:41:12 +0200
committerhexcoder- <heiko@hexco.de>2021-06-04 21:41:12 +0200
commit43eca8203a278183120d93fbf0cd3df2b7fd2392 (patch)
treec932b0f144b19ba228bebaf0fe850520da9055a5 /src
parent36671ce79987859b1f0dfec88cb06c6eb7f5d12b (diff)
downloadafl++-43eca8203a278183120d93fbf0cd3df2b7fd2392.tar.gz
fix overflowing UI fields 'now processing'
Diffstat (limited to 'src')
-rw-r--r--src/afl-fuzz-stats.c46
1 files changed, 23 insertions, 23 deletions
diff --git a/src/afl-fuzz-stats.c b/src/afl-fuzz-stats.c
index a9c44cc0..89d2c37d 100644
--- a/src/afl-fuzz-stats.c
+++ b/src/afl-fuzz-stats.c
@@ -766,9 +766,9 @@ void show_stats(afl_state_t *afl) {
" uniq hangs : " cRST "%-6s" bSTG bV "\n",
time_tmp, tmp);
- SAYF(bVR bH bSTOP cCYA
- " cycle progress " bSTG bH10 bH5 bH2 bH2 bHB bH bSTOP cCYA
- " map coverage " bSTG bH bHT bH20 bH2 bVL "\n");
+ SAYF(bVR bH bSTOP cCYA
+ " cycle progress " bSTG bH10 bH5 bH2 bH2 bH2 bHB bH bSTOP cCYA
+ " map coverage" bSTG bHT bH20 bH2 bVL "\n");
/* This gets funny because we want to print several variable-length variables
together, but then cram them into a fixed-width field - so we need to
@@ -778,13 +778,13 @@ void show_stats(afl_state_t *afl) {
afl->queue_cur->favored ? "." : "*", afl->queue_cur->fuzz_level,
((double)afl->current_entry * 100) / afl->queued_paths);
- SAYF(bV bSTOP " now processing : " cRST "%-16s " bSTG bV bSTOP, tmp);
+ SAYF(bV bSTOP " now processing : " cRST "%-18s " bSTG bV bSTOP, tmp);
sprintf(tmp, "%0.02f%% / %0.02f%%",
((double)afl->queue_cur->bitmap_size) * 100 / afl->fsrv.map_size,
t_byte_ratio);
- SAYF(" map density : %s%-21s" bSTG bV "\n",
+ SAYF(" map density : %s%-19s" bSTG bV "\n",
t_byte_ratio > 70
? cLRD
: ((t_bytes < 200 && !afl->non_instrumented_mode) ? cPIN : cRST),
@@ -793,23 +793,23 @@ void show_stats(afl_state_t *afl) {
sprintf(tmp, "%s (%0.02f%%)", u_stringify_int(IB(0), afl->cur_skipped_paths),
((double)afl->cur_skipped_paths * 100) / afl->queued_paths);
- SAYF(bV bSTOP " paths timed out : " cRST "%-16s " bSTG bV, tmp);
+ SAYF(bV bSTOP " paths timed out : " cRST "%-18s " bSTG bV, tmp);
sprintf(tmp, "%0.02f bits/tuple", t_bytes ? (((double)t_bits) / t_bytes) : 0);
- SAYF(bSTOP " count coverage : " cRST "%-21s" bSTG bV "\n", tmp);
+ SAYF(bSTOP " count coverage : " cRST "%-19s" bSTG bV "\n", tmp);
- SAYF(bVR bH bSTOP cCYA
- " stage progress " bSTG bH10 bH5 bH2 bH2 bX bH bSTOP cCYA
- " findings in depth " bSTG bH10 bH5 bH2 bH2 bVL "\n");
+ SAYF(bVR bH bSTOP cCYA
+ " stage progress " bSTG bH10 bH5 bH2 bH2 bH2 bX bH bSTOP cCYA
+ " findings in depth " bSTG bH10 bH5 bH2 bVL "\n");
sprintf(tmp, "%s (%0.02f%%)", u_stringify_int(IB(0), afl->queued_favored),
((double)afl->queued_favored) * 100 / afl->queued_paths);
/* Yeah... it's still going on... halp? */
- SAYF(bV bSTOP " now trying : " cRST "%-20s " bSTG bV bSTOP
- " favored paths : " cRST "%-22s" bSTG bV "\n",
+ SAYF(bV bSTOP " now trying : " cRST "%-22s " bSTG bV bSTOP
+ " favored paths : " cRST "%-20s" bSTG bV "\n",
afl->stage_name, tmp);
if (!afl->stage_max) {
@@ -824,12 +824,12 @@ void show_stats(afl_state_t *afl) {
}
- SAYF(bV bSTOP " stage execs : " cRST "%-21s" bSTG bV bSTOP, tmp);
+ SAYF(bV bSTOP " stage execs : " cRST "%-23s" bSTG bV bSTOP, tmp);
sprintf(tmp, "%s (%0.02f%%)", u_stringify_int(IB(0), afl->queued_with_cov),
((double)afl->queued_with_cov) * 100 / afl->queued_paths);
- SAYF(" new edges on : " cRST "%-22s" bSTG bV "\n", tmp);
+ SAYF(" new edges on : " cRST "%-20s" bSTG bV "\n", tmp);
sprintf(tmp, "%s (%s%s unique)", u_stringify_int(IB(0), afl->total_crashes),
u_stringify_int(IB(1), afl->unique_crashes),
@@ -837,14 +837,14 @@ void show_stats(afl_state_t *afl) {
if (afl->crash_mode) {
- SAYF(bV bSTOP " total execs : " cRST "%-20s " bSTG bV bSTOP
- " new crashes : %s%-22s" bSTG bV "\n",
+ SAYF(bV bSTOP " total execs : " cRST "%-22s " bSTG bV bSTOP
+ " new crashes : %s%-20s" bSTG bV "\n",
u_stringify_int(IB(0), afl->fsrv.total_execs), crash_color, tmp);
} else {
- SAYF(bV bSTOP " total execs : " cRST "%-20s " bSTG bV bSTOP
- " total crashes : %s%-22s" bSTG bV "\n",
+ SAYF(bV bSTOP " total execs : " cRST "%-22s " bSTG bV bSTOP
+ " total crashes : %s%-20s" bSTG bV "\n",
u_stringify_int(IB(0), afl->fsrv.total_execs), crash_color, tmp);
}
@@ -856,12 +856,12 @@ void show_stats(afl_state_t *afl) {
sprintf(tmp, "%s/sec (%s)", u_stringify_float(IB(0), afl->stats_avg_exec),
afl->stats_avg_exec < 20 ? "zzzz..." : "slow!");
- SAYF(bV bSTOP " exec speed : " cLRD "%-20s ", tmp);
+ SAYF(bV bSTOP " exec speed : " cLRD "%-22s ", tmp);
} else {
sprintf(tmp, "%s/sec", u_stringify_float(IB(0), afl->stats_avg_exec));
- SAYF(bV bSTOP " exec speed : " cRST "%-20s ", tmp);
+ SAYF(bV bSTOP " exec speed : " cRST "%-22s ", tmp);
}
@@ -869,12 +869,12 @@ void show_stats(afl_state_t *afl) {
u_stringify_int(IB(1), afl->unique_tmouts),
(afl->unique_hangs >= KEEP_UNIQUE_HANG) ? "+" : "");
- SAYF(bSTG bV bSTOP " total tmouts : " cRST "%-22s" bSTG bV "\n", tmp);
+ SAYF(bSTG bV bSTOP " total tmouts : " cRST "%-20s" bSTG bV "\n", tmp);
/* Aaaalmost there... hold on! */
- SAYF(bVR bH cCYA bSTOP
- " fuzzing strategy yields " bSTG bH10 bHT bH10 bH5 bHB bH bSTOP cCYA
+ SAYF(bVR bH cCYA bSTOP
+ " fuzzing strategy yields " bSTG bH10 bH2 bHT bH10 bH2 bH bHB bH bSTOP cCYA
" path geometry " bSTG bH5 bH2 bVL "\n");
if (unlikely(afl->custom_only)) {