about summary refs log tree commit diff
path: root/instrumentation/afl-compiler-rt.o.c
diff options
context:
space:
mode:
authordergoegge <n.goeggi@gmail.com>2024-08-21 10:37:39 +0100
committerdergoegge <n.goeggi@gmail.com>2024-10-25 11:37:55 +0100
commit1efb7c8a8b54c3ff236701221e532481ea63b575 (patch)
tree8f05cc420238daa7ad88e78b4c5dee0b5bb09da9 /instrumentation/afl-compiler-rt.o.c
parent7f614be3a555435421465e35536e70ff9c960a79 (diff)
downloadafl++-1efb7c8a8b54c3ff236701221e532481ea63b575.tar.gz
Make __AFL_COVERAGE_START_OFF work for targets with "small" maps
Diffstat (limited to 'instrumentation/afl-compiler-rt.o.c')
-rw-r--r--instrumentation/afl-compiler-rt.o.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/instrumentation/afl-compiler-rt.o.c b/instrumentation/afl-compiler-rt.o.c
index 0da689b2..6084880f 100644
--- a/instrumentation/afl-compiler-rt.o.c
+++ b/instrumentation/afl-compiler-rt.o.c
@@ -630,21 +630,21 @@ static void __afl_map_shm(void) {
 
       __afl_area_ptr_dummy = (u8 *)malloc(__afl_map_size);
 
-      if (__afl_area_ptr_dummy) {
+    }
 
-        if (__afl_selective_coverage_start_off) {
+    if (__afl_area_ptr_dummy) {
 
-          __afl_area_ptr = __afl_area_ptr_dummy;
+      if (__afl_selective_coverage_start_off) {
 
-        }
+        __afl_area_ptr = __afl_area_ptr_dummy;
 
-      } else {
+      }
 
-        fprintf(stderr, "Error: __afl_selective_coverage failed!\n");
-        __afl_selective_coverage = 0;
-        // continue;
+    } else {
 
-      }
+      fprintf(stderr, "Error: __afl_selective_coverage failed!\n");
+      __afl_selective_coverage = 0;
+      // continue;
 
     }