about summary refs log tree commit diff
path: root/src/afl-fuzz-state.c
diff options
context:
space:
mode:
authorhexcoder- <heiko@hexco.de>2020-12-18 21:10:39 +0100
committerhexcoder- <heiko@hexco.de>2020-12-18 21:10:39 +0100
commit12ebb351dc2b5655b4174539e2b9ee59e4acf893 (patch)
treeed66d2b7f4e8d6d1a7f2ff0d9b44a1eb9af39c99 /src/afl-fuzz-state.c
parent73dd6d86abc16c2ceb5529f3a261724be8b7896a (diff)
downloadafl++-12ebb351dc2b5655b4174539e2b9ee59e4acf893.tar.gz
apply nocolor changes
Diffstat (limited to 'src/afl-fuzz-state.c')
-rw-r--r--src/afl-fuzz-state.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/afl-fuzz-state.c b/src/afl-fuzz-state.c
index 9c51a3ef..e863c4c7 100644
--- a/src/afl-fuzz-state.c
+++ b/src/afl-fuzz-state.c
@@ -401,6 +401,22 @@ void read_afl_environment(afl_state_t *afl, char **envp) {
             afl->afl_env.afl_crash_exitcode =
                 (u8 *)get_afl_env(afl_environment_variables[i]);
 
+#if defined USE_COLOR && ! defined ALWAYS_COLORED
+          } else if (!strncmp(env, "AFL_NO_COLOR",
+
+                              afl_environment_variable_len)) {
+
+            afl->afl_env.afl_statsd_tags_flavor =
+                (u8 *)get_afl_env(afl_environment_variables[i]);
+
+          } else if (!strncmp(env, "AFL_NO_COLOUR",
+
+                              afl_environment_variable_len)) {
+
+            afl->afl_env.afl_statsd_tags_flavor =
+                (u8 *)get_afl_env(afl_environment_variables[i]);
+#endif
+
           }
 
         } else {