about summary refs log tree commit diff
path: root/instrumentation/SanitizerCoverageLTO.so.cc
diff options
context:
space:
mode:
authorvanhauser-thc <vh@thc.org>2024-02-09 13:09:16 +0100
committervanhauser-thc <vh@thc.org>2024-02-09 13:09:23 +0100
commitf2b7357ff3efedca53a7cd856469b439c2e547ef (patch)
tree9240b6777f7d56a0ce112d947f35dbb4d67bf98f /instrumentation/SanitizerCoverageLTO.so.cc
parent3cbaefd24779580b1617284a328177db8aaad93f (diff)
downloadafl++-f2b7357ff3efedca53a7cd856469b439c2e547ef.tar.gz
fixes
Diffstat (limited to 'instrumentation/SanitizerCoverageLTO.so.cc')
-rw-r--r--instrumentation/SanitizerCoverageLTO.so.cc15
1 files changed, 8 insertions, 7 deletions
diff --git a/instrumentation/SanitizerCoverageLTO.so.cc b/instrumentation/SanitizerCoverageLTO.so.cc
index f55aeca2..43c6ca40 100644
--- a/instrumentation/SanitizerCoverageLTO.so.cc
+++ b/instrumentation/SanitizerCoverageLTO.so.cc
@@ -1673,12 +1673,12 @@ void ModuleSanitizerCoverageLTO::instrumentFunction(
 
     inst = inst_save;
 
-  }
+    /* if (debug)
+       fprintf(stderr, "Next instrumentation (%u-%u=%u %u-%u=%u)\n", inst,
+               inst_save, inst - inst_save, afl_global_id, save_global,
+               afl_global_id - save_global);*/
 
-  /*  if (debug)
-      fprintf(stderr, "Next instrumentation (%u-%u=%u %u-%u=%u)\n", inst,
-              inst_save, inst - inst_save, afl_global_id, save_global,
-              afl_global_id - save_global);*/
+  }
 
   for (auto &BB : F) {
 
@@ -1932,8 +1932,9 @@ void ModuleSanitizerCoverageLTO::instrumentFunction(
 
     }
 
-    // if (shouldInstrumentBlock(F, &BB, DT, PDT, Options))
-    //   BlocksToInstrument.push_back(&BB);
+    if (!instrument_ctx)
+      if (shouldInstrumentBlock(F, &BB, DT, PDT, Options))
+        BlocksToInstrument.push_back(&BB);
 
     /*
         for (auto &Inst : BB) {