about summary refs log tree commit diff
path: root/instrumentation/SanitizerCoverageLTO.so.cc
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2024-05-11 09:16:21 +0200
committerGitHub <noreply@github.com>2024-05-11 09:16:21 +0200
commit90fbf59bf16f057e50132b81be759414787ce1a3 (patch)
treee57ec2ff73da06776f6cf9c20eb907a8c5aebf05 /instrumentation/SanitizerCoverageLTO.so.cc
parentad0d0c77fb313e6edfee111fecf2bcd16d8f915e (diff)
parent93c7cbd49603c1a256caf3ab6e971c9f4e40bab4 (diff)
downloadafl++-90fbf59bf16f057e50132b81be759414787ce1a3.tar.gz
Merge pull request #2084 from AFLplusplus/dev
push to stable
Diffstat (limited to 'instrumentation/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);
 
   }