aboutsummaryrefslogtreecommitdiff
path: root/instrumentation/SanitizerCoverageLTO.so.cc
diff options
context:
space:
mode:
authorvanhauser-thc <vh@thc.org>2021-10-18 20:53:54 +0200
committervanhauser-thc <vh@thc.org>2021-10-18 20:53:54 +0200
commitbb8a4d71da8f2b748a78ccc4416df6bffb393d80 (patch)
tree157a08bdf31e159bd83d137cc157fb204cc34117 /instrumentation/SanitizerCoverageLTO.so.cc
parentfd43daee6a2146e95059b7ea670c6bf24b3704ed (diff)
downloadafl++-bb8a4d71da8f2b748a78ccc4416df6bffb393d80.tar.gz
format and remove warning
Diffstat (limited to 'instrumentation/SanitizerCoverageLTO.so.cc')
-rw-r--r--instrumentation/SanitizerCoverageLTO.so.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/instrumentation/SanitizerCoverageLTO.so.cc b/instrumentation/SanitizerCoverageLTO.so.cc
index 960eb783..d90fa867 100644
--- a/instrumentation/SanitizerCoverageLTO.so.cc
+++ b/instrumentation/SanitizerCoverageLTO.so.cc
@@ -447,8 +447,7 @@ bool ModuleSanitizerCoverage::instrumentModule(
if ((ptr = getenv("AFL_LLVM_DOCUMENT_IDS")) != NULL) {
dFile.open(ptr, std::ofstream::out | std::ofstream::app);
- if (dFile.is_open())
- WARNF("Cannot access document file %s", ptr);
+ if (dFile.is_open()) WARNF("Cannot access document file %s", ptr);
}
@@ -1084,7 +1083,7 @@ bool ModuleSanitizerCoverage::instrumentModule(
if (count) {
- auto ptrhld = std::unique_ptr<char []>(new char[memlen + count]);
+ auto ptrhld = std::unique_ptr<char[]>(new char[memlen + count]);
count = 0;
@@ -1502,7 +1501,8 @@ void ModuleSanitizerCoverage::InjectCoverageAtBlock(Function &F, BasicBlock &BB,
unsigned long long int moduleID =
(((unsigned long long int)(rand() & 0xffffffff)) << 32) | getpid();
- dFile << "ModuleID=" << moduleID << " Function=" << F.getName().str() << " edgeID=" << afl_global_id << "\n";
+ dFile << "ModuleID=" << moduleID << " Function=" << F.getName().str()
+ << " edgeID=" << afl_global_id << "\n";
}