diff options
| author | van Hauser <vh@thc.org> | 2022-08-03 11:08:10 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-08-03 11:08:10 +0200 |
| commit | a2f3c3ee519c19935039d1fe1e8b77cdc32fa375 (patch) | |
| tree | 3a0007a3e8a07b58c4bef927d9c52e0043aa8466 /instrumentation | |
| parent | c57988e672634ee98048eba6432cc1f4e377e07c (diff) | |
| parent | 6056d4b140f0665c6a701cada9166379be3435ac (diff) | |
| download | afl++-a2f3c3ee519c19935039d1fe1e8b77cdc32fa375.tar.gz | |
Merge pull request #1478 from AFLplusplus/dev
Push to stable
Diffstat (limited to 'instrumentation')
| -rw-r--r-- | instrumentation/SanitizerCoveragePCGUARD.so.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/instrumentation/SanitizerCoveragePCGUARD.so.cc b/instrumentation/SanitizerCoveragePCGUARD.so.cc index d5f56aa8..e22c9ead 100644 --- a/instrumentation/SanitizerCoveragePCGUARD.so.cc +++ b/instrumentation/SanitizerCoveragePCGUARD.so.cc @@ -262,7 +262,7 @@ class ModuleSanitizerCoverageLegacyPass : public ModulePass { } // namespace -#if 1 +#if LLVM_VERSION_MAJOR >= 11 /* use new pass manager */ extern "C" ::llvm::PassPluginLibraryInfo LLVM_ATTRIBUTE_WEAK llvmGetPassPluginInfo() { @@ -902,7 +902,7 @@ bool ModuleSanitizerCoverageAFL::InjectCoverage( if (tt) { cnt_sel++; - cnt_sel_inc += tt->getElementCount().getKnownMinValue(); + cnt_sel_inc += (tt->getElementCount().getKnownMinValue() * 2); } |
