about summary refs log tree commit diff
path: root/src/afl-fuzz-state.c
diff options
context:
space:
mode:
authorvanhauser-thc <vh@thc.org>2022-06-08 10:56:11 +0200
committervanhauser-thc <vh@thc.org>2022-06-08 10:56:11 +0200
commit83f32c5248c8a8a1e69ca2f6f392c27c1736eef1 (patch)
tree806a28ef384b3fc5f32786f949fc79ee82c2458d /src/afl-fuzz-state.c
parent683dcc471083540da20468a4ba505bc4f3d7bbf4 (diff)
downloadafl++-83f32c5248c8a8a1e69ca2f6f392c27c1736eef1.tar.gz
honor AFL_MAP_SIZE well outside of afl++
Diffstat (limited to 'src/afl-fuzz-state.c')
-rw-r--r--src/afl-fuzz-state.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/afl-fuzz-state.c b/src/afl-fuzz-state.c
index cbe32c75..8334af75 100644
--- a/src/afl-fuzz-state.c
+++ b/src/afl-fuzz-state.c
@@ -526,11 +526,18 @@ void read_afl_environment(afl_state_t *afl, char **envp) {
 
             int time = atoi((u8 *)get_afl_env(afl_environment_variables[i]));
             if (time > 0) {
-                afl->sync_time = time * (60 * 1000LL);
+
+              afl->sync_time = time * (60 * 1000LL);
+
             } else {
-              WARNF("incorrect value for AFL_SYNC_TIME environment variable, "
-                    "used default value %lld instead.", afl->sync_time / 60 / 1000);
+
+              WARNF(
+                  "incorrect value for AFL_SYNC_TIME environment variable, "
+                  "used default value %lld instead.",
+                  afl->sync_time / 60 / 1000);
+
             }
+
           }
 
         } else {