diff options
author | van Hauser <vh@thc.org> | 2021-02-01 14:02:31 +0100 |
---|---|---|
committer | van Hauser <vh@thc.org> | 2021-02-01 14:02:31 +0100 |
commit | fc5f8657967bef708dd423b8f9c3ca48a98724ec (patch) | |
tree | 66a003e54b11e1979ce337d342fe13b2e4306f9c | |
parent | 88155d2c3b86aa2b042e57481939cf2a7d3b02f4 (diff) | |
download | afl++-fc5f8657967bef708dd423b8f9c3ca48a98724ec.tar.gz |
reorder check
-rw-r--r-- | instrumentation/SanitizerCoveragePCGUARD.so.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/instrumentation/SanitizerCoveragePCGUARD.so.cc b/instrumentation/SanitizerCoveragePCGUARD.so.cc index 5b274770..5d6d6703 100644 --- a/instrumentation/SanitizerCoveragePCGUARD.so.cc +++ b/instrumentation/SanitizerCoveragePCGUARD.so.cc @@ -1005,9 +1005,9 @@ bool ModuleSanitizerCoverage::InjectCoverage(Function & F, if ((callInst = dyn_cast<CallInst>(&IN))) { Function *Callee = callInst->getCalledFunction(); - StringRef FuncName = Callee->getName(); if (!Callee) continue; if (callInst->getCallingConv() != llvm::CallingConv::C) continue; + StringRef FuncName = Callee->getName(); if (FuncName.compare(StringRef("__afl_coverage_interesting"))) continue; uint32_t id = 1 + instr + (uint32_t)AllBlocks.size() + special++; |