about summary refs log tree commit diff
path: root/llvm_mode/afl-llvm-lto-instrumentation.so.cc
diff options
context:
space:
mode:
authorDominik Maier <domenukk@gmail.com>2020-06-25 17:13:16 +0200
committerDominik Maier <domenukk@gmail.com>2020-06-25 17:13:16 +0200
commit3a62bb68e0867ceb920761bc19c96f5ca1992003 (patch)
tree2f403d0b9911002f4b5d8c2edd09a6b1117c93d1 /llvm_mode/afl-llvm-lto-instrumentation.so.cc
parentaad433e11efa4a8350a264313c66db8ef6d17088 (diff)
parent8178f4dfddfb51f7a3e2f94e67bb9cf7332c7ef1 (diff)
downloadafl++-3a62bb68e0867ceb920761bc19c96f5ca1992003.tar.gz
updated unicornafl
Diffstat (limited to 'llvm_mode/afl-llvm-lto-instrumentation.so.cc')
-rw-r--r--llvm_mode/afl-llvm-lto-instrumentation.so.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm_mode/afl-llvm-lto-instrumentation.so.cc b/llvm_mode/afl-llvm-lto-instrumentation.so.cc
index cbe68171..0d3015d7 100644
--- a/llvm_mode/afl-llvm-lto-instrumentation.so.cc
+++ b/llvm_mode/afl-llvm-lto-instrumentation.so.cc
@@ -109,6 +109,7 @@ bool AFLLTOPass::runOnModule(Module &M) {
   IntegerType *Int64Ty = IntegerType::getInt64Ty(C);
 
   /* Show a banner */
+  setvbuf(stdout, NULL, _IONBF, 0);
 
   if ((isatty(2) && !getenv("AFL_QUIET")) || debug) {
 
@@ -162,7 +163,7 @@ bool AFLLTOPass::runOnModule(Module &M) {
 
   }
 
-  if (debug) { fprintf(stderr, "map address is %lu\n", map_addr); }
+  if (debug) { fprintf(stderr, "map address is 0x%lx\n", map_addr); }
 
   /* Get/set the globals for the SHM region. */