aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvanhauser-thc <vh@thc.org>2021-03-10 10:40:52 +0100
committervanhauser-thc <vh@thc.org>2021-03-10 10:40:52 +0100
commit69f3095045f4e60a9ef4b0ca0c5032ed824cd4f4 (patch)
treeeb1784f78c98f53959dca93e285426a2428ab236
parentd678d59372494ab971429abceaa35b0fad2860ae (diff)
downloadafl++-69f3095045f4e60a9ef4b0ca0c5032ed824cd4f4.tar.gz
correct debug
-rw-r--r--instrumentation/afl-compiler-rt.o.c21
1 files changed, 10 insertions, 11 deletions
diff --git a/instrumentation/afl-compiler-rt.o.c b/instrumentation/afl-compiler-rt.o.c
index 9480b90e..71ef6c48 100644
--- a/instrumentation/afl-compiler-rt.o.c
+++ b/instrumentation/afl-compiler-rt.o.c
@@ -459,21 +459,20 @@ static void __afl_map_shm(void) {
if (!__afl_area_ptr) { __afl_area_ptr = __afl_area_ptr_dummy; }
- if (__afl_debug)
- fprintf(stderr,
- "DEBUG: (2) id_str %s, __afl_area_ptr %p, __afl_area_initial %p, "
- "__afl_area_ptr_dummy 0x%p, __afl_map_addr 0x%llx, MAP_SIZE "
- "%u, __afl_final_loc %u, "
- "max_size_forkserver %u/0x%x\n",
- id_str == NULL ? "<null>" : id_str, __afl_area_ptr,
- __afl_area_initial, __afl_area_ptr_dummy, __afl_map_addr,
- MAP_SIZE, __afl_final_loc, FS_OPT_MAX_MAPSIZE,
- FS_OPT_MAX_MAPSIZE);
-
}
__afl_area_ptr_backup = __afl_area_ptr;
+ if (__afl_debug)
+ fprintf(stderr,
+ "DEBUG: (2) id_str %s, __afl_area_ptr %p, __afl_area_initial %p, "
+ "__afl_area_ptr_dummy 0x%p, __afl_map_addr 0x%llx, MAP_SIZE "
+ "%u, __afl_final_loc %u, "
+ "max_size_forkserver %u/0x%x\n",
+ id_str == NULL ? "<null>" : id_str, __afl_area_ptr,
+ __afl_area_initial, __afl_area_ptr_dummy, __afl_map_addr, MAP_SIZE,
+ __afl_final_loc, FS_OPT_MAX_MAPSIZE, FS_OPT_MAX_MAPSIZE);
+
if (__afl_selective_coverage) {
if (__afl_map_size > MAP_INITIAL_SIZE) {