about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorvanhauser-thc <vh@thc.org>2021-03-18 11:05:53 +0100
committervanhauser-thc <vh@thc.org>2021-03-18 11:05:53 +0100
commit10fb46301c07203bd01dfa6af9e4860e9d4b1852 (patch)
tree492a2748da50bc3a41134e27bd2dd88f69411623 /src
parent94312796f936ba1830b61432a0f958e192dd212f (diff)
downloadafl++-10fb46301c07203bd01dfa6af9e4860e9d4b1852.tar.gz
afl-fuzz cleanup
Diffstat (limited to 'src')
-rw-r--r--src/afl-fuzz.c15
1 files changed, 2 insertions, 13 deletions
diff --git a/src/afl-fuzz.c b/src/afl-fuzz.c
index ff4c5281..16c1f390 100644
--- a/src/afl-fuzz.c
+++ b/src/afl-fuzz.c
@@ -1540,10 +1540,8 @@ int main(int argc, char **argv_orig, char **envp) {
     u32 new_map_size = afl_fsrv_get_mapsize(
         &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 /*||
-         (new_map_size != MAP_SIZE && new_map_size < map_size &&
-          map_size - new_map_size > MAP_SIZE)*/)) {
+    // only reinitialize if the map nees to be larger than what we have.
+    if (map_size < new_map_size) {
 
       OKF("Re-initializing maps to %u bytes", new_map_size);
 
@@ -1639,15 +1637,6 @@ int main(int argc, char **argv_orig, char **envp) {
 
   }
 
-  if (afl->debug) {
-
-    printf("NORMAL %u, CMPLOG %u\n", afl->fsrv.map_size,
-           afl->cmplog_fsrv.map_size);
-    fprintf(stderr, "NORMAL %u, CMPLOG %u\n", afl->fsrv.map_size,
-            afl->cmplog_fsrv.map_size);
-
-  }
-
   load_auto(afl);
 
   if (extras_dir_cnt) {