about summary refs log tree commit diff
path: root/src/afl-fuzz-state.c
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2023-04-12 10:54:08 +0200
committerGitHub <noreply@github.com>2023-04-12 10:54:08 +0200
commit4f2d9eeaaa6b702ef28eb883f9000321eaf1fe9b (patch)
tree125cecc79c148552844723e95ddd246bf918d6fc /src/afl-fuzz-state.c
parent7101192865893e00b9029d0cb898a3ca3015d50b (diff)
parent743ae507756db0707a213cd8272b219b0de0f514 (diff)
downloadafl++-4f2d9eeaaa6b702ef28eb883f9000321eaf1fe9b.tar.gz
Merge pull request #1700 from AFLplusplus/dev
push to stable
Diffstat (limited to 'src/afl-fuzz-state.c')
-rw-r--r--src/afl-fuzz-state.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/afl-fuzz-state.c b/src/afl-fuzz-state.c
index f9aa5cfe..46b67def 100644
--- a/src/afl-fuzz-state.c
+++ b/src/afl-fuzz-state.c
@@ -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); }