diff options
author | van Hauser <vh@thc.org> | 2020-05-02 00:39:13 +0200 |
---|---|---|
committer | van Hauser <vh@thc.org> | 2020-05-02 00:39:13 +0200 |
commit | 378573ab8b2f9b150429503c649e86e0fed4e946 (patch) | |
tree | 42fe481e36f554bd4f0033b5b96b422839b3cafb /llvm_mode/LLVMInsTrim.so.cc | |
parent | 33ddf6ea0e090ec2ef18dfa7c53b4dfe8130de26 (diff) | |
download | afl++-378573ab8b2f9b150429503c649e86e0fed4e946.tar.gz |
AFL_LLVM_SKIP_NEVERZERO added
Diffstat (limited to 'llvm_mode/LLVMInsTrim.so.cc')
-rw-r--r-- | llvm_mode/LLVMInsTrim.so.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm_mode/LLVMInsTrim.so.cc b/llvm_mode/LLVMInsTrim.so.cc index 98263ef1..c78250eb 100644 --- a/llvm_mode/LLVMInsTrim.so.cc +++ b/llvm_mode/LLVMInsTrim.so.cc @@ -56,6 +56,7 @@ struct InsTrim : public ModulePass { protected: uint32_t function_minimum_size = 1; uint32_t debug = 0; + char * skip_nozero = NULL; private: std::mt19937 generator; @@ -112,6 +113,7 @@ struct InsTrim : public ModulePass { if ((neverZero_counters_str = getenv("AFL_LLVM_NOT_ZERO")) != NULL) if (!be_quiet) OKF("LLVM neverZero activated (by hexcoder)\n"); #endif + skip_nozero = getenv("AFL_LLVM_SKIP_NEVERZERO"); if (getenv("AFL_LLVM_INSTRIM_LOOPHEAD") != NULL || getenv("LOOPHEAD") != NULL) { @@ -304,8 +306,7 @@ struct InsTrim : public ModulePass { NULL) // with llvm 9 we make this the default as the bug in llvm is // then fixed #else - if (1) // with llvm 9 we make this the default as the bug in llvm is - // then fixed + if (!skip_nozero) #endif { |