about summary refs log tree commit diff
diff options
context:
space:
mode:
authorvanhauser-thc <vh@thc.org>2021-03-17 01:08:10 +0100
committervanhauser-thc <vh@thc.org>2021-03-17 01:08:10 +0100
commitf59ef29c267c8500cc07115b10355c82dd770064 (patch)
treee536ecadc24b3d0e0616a6f4a58367af92ca965c
parent65b90001f6e731f22178cb592b9812639bff4cb5 (diff)
downloadafl++-f59ef29c267c8500cc07115b10355c82dd770064.tar.gz
fix attempt
-rw-r--r--src/afl-fuzz.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/afl-fuzz.c b/src/afl-fuzz.c
index cfb507a7..12642557 100644
--- a/src/afl-fuzz.c
+++ b/src/afl-fuzz.c
@@ -1539,9 +1539,9 @@ int main(int argc, char **argv_orig, char **envp) {
         &afl->fsrv, afl->argv, &afl->stop_soon, afl->afl_env.afl_debug_child);
 
     // only reinitialize when it makes sense
-    if ((map_size < new_map_size ||
+    if ((map_size < new_map_size /*||
          (new_map_size != MAP_SIZE && new_map_size < map_size &&
-          map_size - new_map_size > MAP_SIZE))) {
+          map_size - new_map_size > MAP_SIZE)*/)) {
 
       OKF("Re-initializing maps to %u bytes", new_map_size);
 
@@ -1570,8 +1570,6 @@ int main(int argc, char **argv_orig, char **envp) {
 
     }
 
-    afl->fsrv.map_size = map_size;
-
   }
 
   if (afl->cmplog_binary) {
@@ -1629,16 +1627,14 @@ int main(int argc, char **argv_orig, char **envp) {
       afl_fsrv_start(&afl->cmplog_fsrv, afl->argv, &afl->stop_soon,
                      afl->afl_env.afl_debug_child);
 
-    } else {
-
-      afl->cmplog_fsrv.map_size = new_map_size;
-
     }
 
     OKF("Cmplog forkserver successfully started");
 
   }
 
+  fprintf(stderr, "NORMAL %u, CMPLOG %u\n", afl->fsrv.map_size, afl->cmplog_fsrv.map_size);
+
   load_auto(afl);
 
   if (extras_dir_cnt) {