aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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) {