aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvanhauser-thc <vh@thc.org>2022-01-17 20:15:27 +0100
committervanhauser-thc <vh@thc.org>2022-01-17 20:15:27 +0100
commitc5117b42cab9f47448a7f3cfe3edae6708d32528 (patch)
tree591399f66e2a82c076ccf3006c8d5310d6e0223e
parent0e2c832499d88c9040779737d33fc47f29fb2357 (diff)
downloadafl++-c5117b42cab9f47448a7f3cfe3edae6708d32528.tar.gz
fix iselect instrumentation
-rw-r--r--instrumentation/SanitizerCoverageLTO.so.cc3
-rw-r--r--instrumentation/SanitizerCoveragePCGUARD.so.cc1
2 files changed, 1 insertions, 3 deletions
diff --git a/instrumentation/SanitizerCoverageLTO.so.cc b/instrumentation/SanitizerCoverageLTO.so.cc
index 597a24b1..6a4a071f 100644
--- a/instrumentation/SanitizerCoverageLTO.so.cc
+++ b/instrumentation/SanitizerCoverageLTO.so.cc
@@ -1275,7 +1275,7 @@ void ModuleSanitizerCoverage::instrumentFunction(
const DominatorTree * DT = DTCallback(F);
const PostDominatorTree *PDT = PDTCallback(F);
bool IsLeafFunc = true;
- uint32_t skip_next = 0, local_selects = 0;
+ uint32_t skip_next = 0;
for (auto &BB : F) {
@@ -1385,7 +1385,6 @@ void ModuleSanitizerCoverage::instrumentFunction(
}
- local_selects++;
uint32_t vector_cur = 0;
/* Load SHM pointer */
LoadInst *MapPtr =
diff --git a/instrumentation/SanitizerCoveragePCGUARD.so.cc b/instrumentation/SanitizerCoveragePCGUARD.so.cc
index c422d858..e4ffeb50 100644
--- a/instrumentation/SanitizerCoveragePCGUARD.so.cc
+++ b/instrumentation/SanitizerCoveragePCGUARD.so.cc
@@ -1054,7 +1054,6 @@ bool ModuleSanitizerCoverage::InjectCoverage(Function & F,
}
- local_selects++;
uint32_t vector_cur = 0;
/* Load SHM pointer */