diff options
author | hexcoder- <heiko@hexco.de> | 2020-03-28 09:31:30 +0100 |
---|---|---|
committer | hexcoder- <heiko@hexco.de> | 2020-03-28 09:31:30 +0100 |
commit | 4ad885001a0d05657562e2d89a6bbe60dae45fe0 (patch) | |
tree | 5ec002b1390c85d60e9c581cd5be8ca0cb4df7bd /llvm_mode | |
parent | a0dec909e76f492a7958050f101eebef1a998a44 (diff) | |
download | afl++-4ad885001a0d05657562e2d89a6bbe60dae45fe0.tar.gz |
making 'CFLAGS="-m32" make source-only tests' work
Diffstat (limited to 'llvm_mode')
-rw-r--r-- | llvm_mode/LLVMInsTrim.so.cc | 2 | ||||
-rw-r--r-- | llvm_mode/afl-llvm-pass.so.cc | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/llvm_mode/LLVMInsTrim.so.cc b/llvm_mode/LLVMInsTrim.so.cc index c4033523..8b23942c 100644 --- a/llvm_mode/LLVMInsTrim.so.cc +++ b/llvm_mode/LLVMInsTrim.so.cc @@ -509,7 +509,7 @@ struct InsTrim : public ModulePass { if (!be_quiet) { 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" : "", diff --git a/llvm_mode/afl-llvm-pass.so.cc b/llvm_mode/afl-llvm-pass.so.cc index f6ead9ec..3b0e1fda 100644 --- a/llvm_mode/afl-llvm-pass.so.cc +++ b/llvm_mode/afl-llvm-pass.so.cc @@ -587,7 +587,7 @@ bool AFLCoverage::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" : "", |