mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-16 20:08:07 +00:00
fix overflowing UI fields 'now processing'
This commit is contained in:
@ -767,8 +767,8 @@ void show_stats(afl_state_t *afl) {
|
|||||||
time_tmp, tmp);
|
time_tmp, tmp);
|
||||||
|
|
||||||
SAYF(bVR bH bSTOP cCYA
|
SAYF(bVR bH bSTOP cCYA
|
||||||
" cycle progress " bSTG bH10 bH5 bH2 bH2 bHB bH bSTOP cCYA
|
" cycle progress " bSTG bH10 bH5 bH2 bH2 bH2 bHB bH bSTOP cCYA
|
||||||
" map coverage " bSTG bH bHT bH20 bH2 bVL "\n");
|
" map coverage" bSTG bHT bH20 bH2 bVL "\n");
|
||||||
|
|
||||||
/* This gets funny because we want to print several variable-length variables
|
/* 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
|
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,
|
afl->queue_cur->favored ? "." : "*", afl->queue_cur->fuzz_level,
|
||||||
((double)afl->current_entry * 100) / afl->queued_paths);
|
((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%%",
|
sprintf(tmp, "%0.02f%% / %0.02f%%",
|
||||||
((double)afl->queue_cur->bitmap_size) * 100 / afl->fsrv.map_size,
|
((double)afl->queue_cur->bitmap_size) * 100 / afl->fsrv.map_size,
|
||||||
t_byte_ratio);
|
t_byte_ratio);
|
||||||
|
|
||||||
SAYF(" map density : %s%-21s" bSTG bV "\n",
|
SAYF(" map density : %s%-19s" bSTG bV "\n",
|
||||||
t_byte_ratio > 70
|
t_byte_ratio > 70
|
||||||
? cLRD
|
? cLRD
|
||||||
: ((t_bytes < 200 && !afl->non_instrumented_mode) ? cPIN : cRST),
|
: ((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),
|
sprintf(tmp, "%s (%0.02f%%)", u_stringify_int(IB(0), afl->cur_skipped_paths),
|
||||||
((double)afl->cur_skipped_paths * 100) / afl->queued_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);
|
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
|
SAYF(bVR bH bSTOP cCYA
|
||||||
" stage progress " bSTG bH10 bH5 bH2 bH2 bX bH bSTOP cCYA
|
" stage progress " bSTG bH10 bH5 bH2 bH2 bH2 bX bH bSTOP cCYA
|
||||||
" findings in depth " bSTG bH10 bH5 bH2 bH2 bVL "\n");
|
" findings in depth " bSTG bH10 bH5 bH2 bVL "\n");
|
||||||
|
|
||||||
sprintf(tmp, "%s (%0.02f%%)", u_stringify_int(IB(0), afl->queued_favored),
|
sprintf(tmp, "%s (%0.02f%%)", u_stringify_int(IB(0), afl->queued_favored),
|
||||||
((double)afl->queued_favored) * 100 / afl->queued_paths);
|
((double)afl->queued_favored) * 100 / afl->queued_paths);
|
||||||
|
|
||||||
/* Yeah... it's still going on... halp? */
|
/* Yeah... it's still going on... halp? */
|
||||||
|
|
||||||
SAYF(bV bSTOP " now trying : " cRST "%-20s " bSTG bV bSTOP
|
SAYF(bV bSTOP " now trying : " cRST "%-22s " bSTG bV bSTOP
|
||||||
" favored paths : " cRST "%-22s" bSTG bV "\n",
|
" favored paths : " cRST "%-20s" bSTG bV "\n",
|
||||||
afl->stage_name, tmp);
|
afl->stage_name, tmp);
|
||||||
|
|
||||||
if (!afl->stage_max) {
|
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),
|
sprintf(tmp, "%s (%0.02f%%)", u_stringify_int(IB(0), afl->queued_with_cov),
|
||||||
((double)afl->queued_with_cov) * 100 / afl->queued_paths);
|
((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),
|
sprintf(tmp, "%s (%s%s unique)", u_stringify_int(IB(0), afl->total_crashes),
|
||||||
u_stringify_int(IB(1), afl->unique_crashes),
|
u_stringify_int(IB(1), afl->unique_crashes),
|
||||||
@ -837,14 +837,14 @@ void show_stats(afl_state_t *afl) {
|
|||||||
|
|
||||||
if (afl->crash_mode) {
|
if (afl->crash_mode) {
|
||||||
|
|
||||||
SAYF(bV bSTOP " total execs : " cRST "%-20s " bSTG bV bSTOP
|
SAYF(bV bSTOP " total execs : " cRST "%-22s " bSTG bV bSTOP
|
||||||
" new crashes : %s%-22s" bSTG bV "\n",
|
" new crashes : %s%-20s" bSTG bV "\n",
|
||||||
u_stringify_int(IB(0), afl->fsrv.total_execs), crash_color, tmp);
|
u_stringify_int(IB(0), afl->fsrv.total_execs), crash_color, tmp);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
SAYF(bV bSTOP " total execs : " cRST "%-20s " bSTG bV bSTOP
|
SAYF(bV bSTOP " total execs : " cRST "%-22s " bSTG bV bSTOP
|
||||||
" total crashes : %s%-22s" bSTG bV "\n",
|
" total crashes : %s%-20s" bSTG bV "\n",
|
||||||
u_stringify_int(IB(0), afl->fsrv.total_execs), crash_color, tmp);
|
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),
|
sprintf(tmp, "%s/sec (%s)", u_stringify_float(IB(0), afl->stats_avg_exec),
|
||||||
afl->stats_avg_exec < 20 ? "zzzz..." : "slow!");
|
afl->stats_avg_exec < 20 ? "zzzz..." : "slow!");
|
||||||
|
|
||||||
SAYF(bV bSTOP " exec speed : " cLRD "%-20s ", tmp);
|
SAYF(bV bSTOP " exec speed : " cLRD "%-22s ", tmp);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
sprintf(tmp, "%s/sec", u_stringify_float(IB(0), afl->stats_avg_exec));
|
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),
|
u_stringify_int(IB(1), afl->unique_tmouts),
|
||||||
(afl->unique_hangs >= KEEP_UNIQUE_HANG) ? "+" : "");
|
(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! */
|
/* Aaaalmost there... hold on! */
|
||||||
|
|
||||||
SAYF(bVR bH cCYA bSTOP
|
SAYF(bVR bH cCYA bSTOP
|
||||||
" fuzzing strategy yields " bSTG bH10 bHT bH10 bH5 bHB bH bSTOP cCYA
|
" fuzzing strategy yields " bSTG bH10 bH2 bHT bH10 bH2 bH bHB bH bSTOP cCYA
|
||||||
" path geometry " bSTG bH5 bH2 bVL "\n");
|
" path geometry " bSTG bH5 bH2 bVL "\n");
|
||||||
|
|
||||||
if (unlikely(afl->custom_only)) {
|
if (unlikely(afl->custom_only)) {
|
||||||
|
Reference in New Issue
Block a user