allow pizza mode to be disabled

This commit is contained in:
vanhauser-thc
2023-04-02 12:03:45 +02:00
parent 4d02d8e43d
commit e46e0bce44
4 changed files with 17 additions and 4 deletions

View File

@ -9,6 +9,9 @@
- added `AFL_NO_WARN_INSTABILITY` - added `AFL_NO_WARN_INSTABILITY`
- added `AFL_FRIDA_STATS_INTERVAL` - added `AFL_FRIDA_STATS_INTERVAL`
- added time_wo_finds to fuzzer_stats - added time_wo_finds to fuzzer_stats
- fixed a crash in pizza (1st april easter egg) mode. Sorry for
everyone who was affected!
- allow pizza mode to be disabled when AFL_PIZZA_MODE is set to -1
- afl-cc: - afl-cc:
- add CFI sanitizer variant to gcc targets - add CFI sanitizer variant to gcc targets
- llvm 16 support (thanks to @devnexen!) - llvm 16 support (thanks to @devnexen!)

View File

@ -581,7 +581,7 @@ checks or alter some of the more exotic semantics of the tool:
constructors in your target, you can set `AFL_EARLY_FORKSERVER`. constructors in your target, you can set `AFL_EARLY_FORKSERVER`.
Note that this is not a compile time option but a runtime option :-) Note that this is not a compile time option but a runtime option :-)
- Set `AFL_PIZZA_MODE` to 1 to enable the April 1st stats menu, set to 0 - Set `AFL_PIZZA_MODE` to 1 to enable the April 1st stats menu, set to -1
to disable although it is 1st of April. to disable although it is 1st of April.
- If you need a specific interval to update fuzzer_stats file, you can - If you need a specific interval to update fuzzer_stats file, you can

View File

@ -398,8 +398,8 @@ typedef struct afl_env_vars {
afl_bench_until_crash, afl_debug_child, afl_autoresume, afl_cal_fast, afl_bench_until_crash, afl_debug_child, afl_autoresume, afl_cal_fast,
afl_cycle_schedules, afl_expand_havoc, afl_statsd, afl_cmplog_only_new, afl_cycle_schedules, afl_expand_havoc, afl_statsd, afl_cmplog_only_new,
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_pizza_mode, afl_no_crash_readme, afl_keep_timeouts, afl_no_crash_readme, afl_ignore_timeouts,
afl_ignore_timeouts, afl_no_startup_calibration, afl_no_warn_instability; afl_no_startup_calibration, afl_no_warn_instability;
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,
@ -408,6 +408,8 @@ typedef struct afl_env_vars {
*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_target_env, *afl_persistent_record, *afl_exit_on_time;
s32 afl_pizza_mode;
} afl_env_vars_t; } afl_env_vars_t;
struct afl_pass_stat { struct afl_pass_stat {

View File

@ -648,7 +648,15 @@ void read_afl_environment(afl_state_t *afl, char **envp) {
} }
if (afl->afl_env.afl_pizza_mode) { afl->pizza_is_served = 1; } if (afl->afl_env.afl_pizza_mode > 0) {
afl->pizza_is_served = 1;
} else if (afl->afl_env.afl_pizza_mode < 0) {
OKF("Pizza easter egg mode is now disabled.");
}
if (issue_detected) { sleep(2); } if (issue_detected) { sleep(2); }