fix pizza mode

This commit is contained in:
vanhauser-thc
2022-08-25 15:52:46 +02:00
parent 88ff8aa81e
commit eb5a914ef6
2 changed files with 2 additions and 6 deletions

View File

@ -604,11 +604,7 @@ void read_afl_environment(afl_state_t *afl, char **envp) {
}
if (afl->afl_env.afl_pizza_mode == 0) {
afl->afl_env.afl_pizza_mode = 1;
} else {
if (afl->afl_env.afl_pizza_mode) {
afl->pizza_is_served = 1;

View File

@ -2560,7 +2560,7 @@ stop_fuzzing:
write_bitmap(afl);
save_auto(afl);
if (afl->afl_env.afl_pizza_mode) {
if (afl->pizza_is_served) {
SAYF(CURSOR_SHOW cLRD "\n\n+++ Baking aborted %s +++\n" cRST,
afl->stop_soon == 2 ? "programmatically" : "by the chef");