mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-15 19:38:09 +00:00
code format
This commit is contained in:
@ -402,14 +402,14 @@ typedef struct afl_env_vars {
|
|||||||
afl_exit_on_seed_issues, afl_try_affinity, afl_ignore_problems,
|
afl_exit_on_seed_issues, afl_try_affinity, afl_ignore_problems,
|
||||||
afl_keep_timeouts, afl_no_crash_readme, afl_ignore_timeouts,
|
afl_keep_timeouts, afl_no_crash_readme, afl_ignore_timeouts,
|
||||||
afl_no_startup_calibration, afl_no_warn_instability,
|
afl_no_startup_calibration, afl_no_warn_instability,
|
||||||
afl_post_process_keep_original;
|
afl_post_process_keep_original, afl_crashing_seeds_as_new_crash;
|
||||||
|
|
||||||
u8 *afl_tmpdir, *afl_custom_mutator_library, *afl_python_module, *afl_path,
|
u8 *afl_tmpdir, *afl_custom_mutator_library, *afl_python_module, *afl_path,
|
||||||
*afl_hang_tmout, *afl_forksrv_init_tmout, *afl_preload,
|
*afl_hang_tmout, *afl_forksrv_init_tmout, *afl_preload,
|
||||||
*afl_max_det_extras, *afl_statsd_host, *afl_statsd_port,
|
*afl_max_det_extras, *afl_statsd_host, *afl_statsd_port,
|
||||||
*afl_crash_exitcode, *afl_statsd_tags_flavor, *afl_testcache_size,
|
*afl_crash_exitcode, *afl_statsd_tags_flavor, *afl_testcache_size,
|
||||||
*afl_testcache_entries, *afl_child_kill_signal, *afl_fsrv_kill_signal,
|
*afl_testcache_entries, *afl_child_kill_signal, *afl_fsrv_kill_signal,
|
||||||
*afl_target_env, *afl_persistent_record, *afl_exit_on_time, *afl_crashing_seeds_as_new_crash;
|
*afl_target_env, *afl_persistent_record, *afl_exit_on_time;
|
||||||
|
|
||||||
s32 afl_pizza_mode;
|
s32 afl_pizza_mode;
|
||||||
|
|
||||||
|
@ -1057,18 +1057,21 @@ void perform_dry_run(afl_state_t *afl) {
|
|||||||
fn, (int)(s8)afl->fsrv.crash_exitcode);
|
fn, (int)(s8)afl->fsrv.crash_exitcode);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
if (afl->afl_env.afl_crashing_seeds_as_new_crash) {
|
if (afl->afl_env.afl_crashing_seeds_as_new_crash) {
|
||||||
|
|
||||||
WARNF(
|
WARNF(
|
||||||
"Test case '%s' results in a crash, "
|
"Test case '%s' results in a crash, "
|
||||||
"as AFL_CRASHING_SEEDS_AS_NEW_CRASH is set, "
|
"as AFL_CRASHING_SEEDS_AS_NEW_CRASH is set, "
|
||||||
"saving as a new crash", fn);
|
"saving as a new crash",
|
||||||
|
fn);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
WARNF("Test case '%s' results in a crash, skipping", fn);
|
WARNF("Test case '%s' results in a crash, skipping", fn);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (afl->afl_env.afl_exit_on_seed_issues) {
|
if (afl->afl_env.afl_exit_on_seed_issues) {
|
||||||
@ -1102,7 +1105,6 @@ void perform_dry_run(afl_state_t *afl) {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (unlikely(!afl->saved_crashes) &&
|
if (unlikely(!afl->saved_crashes) &&
|
||||||
(afl->afl_env.afl_no_crash_readme != 1)) {
|
(afl->afl_env.afl_no_crash_readme != 1)) {
|
||||||
|
|
||||||
@ -1116,18 +1118,22 @@ void perform_dry_run(afl_state_t *afl) {
|
|||||||
afl->stage_name = "dry_run";
|
afl->stage_name = "dry_run";
|
||||||
afl->stage_short = "dry_run";
|
afl->stage_short = "dry_run";
|
||||||
|
|
||||||
#ifndef SIMPLE_FILES
|
#ifndef SIMPLE_FILES
|
||||||
|
|
||||||
snprintf(crash_fn, PATH_MAX, "%s/crashes/id:%06llu,sig:%02u,%s%s", afl->out_dir,
|
snprintf(crash_fn, PATH_MAX, "%s/crashes/id:%06llu,sig:%02u,%s%s",
|
||||||
afl->saved_crashes, afl->fsrv.last_kill_signal,
|
afl->out_dir, afl->saved_crashes, afl->fsrv.last_kill_signal,
|
||||||
describe_op(afl, 0, NAME_MAX - strlen("id:000000,sig:00,") - strlen(use_name)), use_name);
|
describe_op(afl, 0,
|
||||||
|
NAME_MAX - strlen("id:000000,sig:00,") -
|
||||||
|
strlen(use_name)),
|
||||||
|
use_name);
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
snprintf(crash_fn, PATH_MAX, "%s/crashes/id_%06llu_%02u", afl->out_dir,
|
snprintf(crash_fn, PATH_MAX, "%s/crashes/id_%06llu_%02u",
|
||||||
afl->saved_crashes, afl->fsrv.last_kill_signal);
|
afl->out_dir, afl->saved_crashes,
|
||||||
|
afl->fsrv.last_kill_signal);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
++afl->saved_crashes;
|
++afl->saved_crashes;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user