about summary refs log tree commit diff
path: root/llvm_mode/afl-clang-fast.c
diff options
context:
space:
mode:
authorhexcoder- <heiko@hexco.de>2020-02-16 10:44:53 +0100
committerhexcoder- <heiko@hexco.de>2020-02-16 10:44:53 +0100
commit37f865ab244e32c2f9307014eb4da0d5561a45bd (patch)
treef608ac28ee5247d88b4dd1e1c38a38ae9791977a /llvm_mode/afl-clang-fast.c
parentb133fa3b6e18d46e53fddba10f09097c9bef6868 (diff)
downloadafl++-37f865ab244e32c2f9307014eb4da0d5561a45bd.tar.gz
fix UBSAN handling, update docs
Diffstat (limited to 'llvm_mode/afl-clang-fast.c')
-rw-r--r--llvm_mode/afl-clang-fast.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/llvm_mode/afl-clang-fast.c b/llvm_mode/afl-clang-fast.c
index 348b5333..a9a86957 100644
--- a/llvm_mode/afl-clang-fast.c
+++ b/llvm_mode/afl-clang-fast.c
@@ -300,13 +300,13 @@ static void edit_params(u32 argc, char** argv) {
 
     }
 
-    if (getenv("AFL_USE_UBSAN")) {
+  }
 
-      cc_params[cc_par_cnt++] = "-fsanitize=undefined";
-      cc_params[cc_par_cnt++] = "-fsanitize-undefined-trap-on-error";
-      cc_params[cc_par_cnt++] = "-fno-sanitize-recover=all";
+  if (getenv("AFL_USE_UBSAN")) {
 
-    }
+    cc_params[cc_par_cnt++] = "-fsanitize=undefined";
+    cc_params[cc_par_cnt++] = "-fsanitize-undefined-trap-on-error";
+    cc_params[cc_par_cnt++] = "-fno-sanitize-recover=all";
 
   }