about summary refs log tree commit diff
path: root/llvm_mode/compare-transform-pass.so.cc
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2020-05-08 16:28:39 +0200
committervan Hauser <vh@thc.org>2020-05-08 16:28:39 +0200
commit768053b6f25d5abd1b25f104e0233421bd1f73f9 (patch)
tree9c3196890e2892f217e8bd12f2030d9dc291c7bc /llvm_mode/compare-transform-pass.so.cc
parentd217c7df055b9ca44e5398d8c7d50d43e0b2e56d (diff)
downloadafl++-768053b6f25d5abd1b25f104e0233421bd1f73f9.tar.gz
add AFL_DEBUG check to all isatty checks
Diffstat (limited to 'llvm_mode/compare-transform-pass.so.cc')
-rw-r--r--llvm_mode/compare-transform-pass.so.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm_mode/compare-transform-pass.so.cc b/llvm_mode/compare-transform-pass.so.cc
index 2111b646..00732dbc 100644
--- a/llvm_mode/compare-transform-pass.so.cc
+++ b/llvm_mode/compare-transform-pass.so.cc
@@ -506,7 +506,7 @@ bool CompareTransform::transformCmps(Module &M, const bool processStrcmp,
 
 bool CompareTransform::runOnModule(Module &M) {
 
-  if (isatty(2) && getenv("AFL_QUIET") == NULL)
+  if ((isatty(2) && getenv("AFL_QUIET") == NULL) || getenv("AFL_DEBUG") != NULL)
     llvm::errs() << "Running compare-transform-pass by laf.intel@gmail.com, "
                     "extended by heiko@hexco.de\n";
   else