mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-08 16:21:32 +00:00
fixed segfault on early bailout
This commit is contained in:
parent
35720304be
commit
a57896a7ce
@ -1063,9 +1063,8 @@ static void handle_existing_out_dir(afl_state_t *afl) {
|
|||||||
"directory manually,\n"
|
"directory manually,\n"
|
||||||
" or specify a different output location for this job. To resume "
|
" or specify a different output location for this job. To resume "
|
||||||
"the old\n"
|
"the old\n"
|
||||||
" session, put '-' as the input directory in the command line "
|
" session, pass '-' as input directory in the command line ('-i -')\n"
|
||||||
"('-i -') or set the AFL_AUTORESUME=1 env variable and\n"
|
" or set the 'AFL_AUTORESUME=1' env variable and try again.\n",
|
||||||
" try again.\n",
|
|
||||||
OUTPUT_GRACE);
|
OUTPUT_GRACE);
|
||||||
|
|
||||||
FATAL("At-risk data found in '%s'", afl->out_dir);
|
FATAL("At-risk data found in '%s'", afl->out_dir);
|
||||||
@ -1510,7 +1509,8 @@ void check_crash_handling(void) {
|
|||||||
"extended delay\n"
|
"extended delay\n"
|
||||||
" between stumbling upon a crash and having this information "
|
" between stumbling upon a crash and having this information "
|
||||||
"relayed to the\n"
|
"relayed to the\n"
|
||||||
" fuzzer via the standard waitpid() API.\n\n"
|
" fuzzer via the standard waitpid() API.\n"
|
||||||
|
" If you're just testing, set 'AFL_I_DONT_CARE_ABOUT_MISSING_CRASHES=1'.\n\n"
|
||||||
|
|
||||||
" To avoid having crashes misinterpreted as timeouts, please log in "
|
" To avoid having crashes misinterpreted as timeouts, please log in "
|
||||||
"as root\n"
|
"as root\n"
|
||||||
|
@ -284,6 +284,10 @@ void show_stats(afl_state_t *afl) {
|
|||||||
|
|
||||||
if (afl->not_on_tty) return;
|
if (afl->not_on_tty) return;
|
||||||
|
|
||||||
|
/* If we haven't started doing things, bail out. */
|
||||||
|
|
||||||
|
if (!afl->queue_cur) return;
|
||||||
|
|
||||||
/* Compute some mildly useful bitmap stats. */
|
/* Compute some mildly useful bitmap stats. */
|
||||||
|
|
||||||
t_bits = (MAP_SIZE << 3) - count_bits(afl->virgin_bits);
|
t_bits = (MAP_SIZE << 3) - count_bits(afl->virgin_bits);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user