about summary refs log tree commit diff
path: root/llvm_mode/afl-clang-fast.c
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2020-04-12 10:34:03 +0200
committervan Hauser <vh@thc.org>2020-04-12 10:34:03 +0200
commiteec725a345b2e1cf396fd96970333677f701e42e (patch)
treee54e1b81503897f6fad14f94c86f69b572befbc2 /llvm_mode/afl-clang-fast.c
parentfd63344ffc719a478b3bcb164e9f1d2fdf7cb8aa (diff)
downloadafl++-eec725a345b2e1cf396fd96970333677f701e42e.tar.gz
add global and local var support to autodictionary
Diffstat (limited to 'llvm_mode/afl-clang-fast.c')
-rw-r--r--llvm_mode/afl-clang-fast.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm_mode/afl-clang-fast.c b/llvm_mode/afl-clang-fast.c
index cdb22cb9..fa76a11e 100644
--- a/llvm_mode/afl-clang-fast.c
+++ b/llvm_mode/afl-clang-fast.c
@@ -401,7 +401,9 @@ static void edit_params(u32 argc, char **argv, char **envp) {
 
   }
 
-  if (getenv("AFL_NO_BUILTIN")) {
+  if (getenv("AFL_NO_BUILTIN") || (instrument_mode == INSTRUMENT_LTO &&
+                                   (getenv("AFL_LLVM_LTO_AUTODICTIONARY") ||
+                                    getenv("AFL_LLVM_AUTODICTIONARY")))) {
 
     cc_params[cc_par_cnt++] = "-fno-builtin-strcmp";
     cc_params[cc_par_cnt++] = "-fno-builtin-strncmp";