about summary refs log tree commit diff
diff options
context:
space:
mode:
authorKiprey <Kiprey@qq.com>2024-04-29 16:14:49 +0800
committerGitHub <noreply@github.com>2024-04-29 16:14:49 +0800
commit7340374a7c45f14f8e9ccb4077f2294565cdc140 (patch)
tree3a6c31f0c4b62d715f5924577bff726466120b71
parent67d356b73fe163fcaa8227bb1024df706ee335e7 (diff)
downloadafl++-7340374a7c45f14f8e9ccb4077f2294565cdc140.tar.gz
Fix wrong warning in SanitizerCoverageLTO.so.cc
-rw-r--r--instrumentation/SanitizerCoverageLTO.so.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/instrumentation/SanitizerCoverageLTO.so.cc b/instrumentation/SanitizerCoverageLTO.so.cc
index 14482deb..a09f28a9 100644
--- a/instrumentation/SanitizerCoverageLTO.so.cc
+++ b/instrumentation/SanitizerCoverageLTO.so.cc
@@ -486,7 +486,7 @@ bool ModuleSanitizerCoverageLTO::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);
 
   }