about summary refs log tree commit diff
path: root/llvm_mode/afl-llvm-lto-instrumentation.so.cc
diff options
context:
space:
mode:
authorhexcoder- <heiko@hexco.de>2020-03-28 09:54:40 +0100
committerhexcoder- <heiko@hexco.de>2020-03-28 09:54:40 +0100
commit0cff53785bd940ca75506d4c325e07a9ac833eba (patch)
treec9d2396da7c45a80012d7a4c31c62d3d5fb78774 /llvm_mode/afl-llvm-lto-instrumentation.so.cc
parent4ad885001a0d05657562e2d89a6bbe60dae45fe0 (diff)
downloadafl++-0cff53785bd940ca75506d4c325e07a9ac833eba.tar.gz
llvm_mode: fix compiler warnings FORTIFY_SOURCE needs -O
Diffstat (limited to 'llvm_mode/afl-llvm-lto-instrumentation.so.cc')
-rw-r--r--llvm_mode/afl-llvm-lto-instrumentation.so.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm_mode/afl-llvm-lto-instrumentation.so.cc b/llvm_mode/afl-llvm-lto-instrumentation.so.cc
index 8bf485af..4bc16f17 100644
--- a/llvm_mode/afl-llvm-lto-instrumentation.so.cc
+++ b/llvm_mode/afl-llvm-lto-instrumentation.so.cc
@@ -392,7 +392,7 @@ bool AFLLTOPass::runOnModule(Module &M) {
     else {
 
       char modeline[100];
-      snprintf(modeline, sizeof(modeline), "%s%s%s%s",
+      snprintf(modeline, sizeof(modeline), "%s%s%s%s%s",
                getenv("AFL_HARDEN") ? "hardened" : "non-hardened",
                getenv("AFL_USE_ASAN") ? ", ASAN" : "",
                getenv("AFL_USE_MSAN") ? ", MSAN" : "",