diff options
author | hexcoder- <heiko@hexco.de> | 2020-02-16 10:44:53 +0100 |
---|---|---|
committer | hexcoder- <heiko@hexco.de> | 2020-02-16 10:44:53 +0100 |
commit | 37f865ab244e32c2f9307014eb4da0d5561a45bd (patch) | |
tree | f608ac28ee5247d88b4dd1e1c38a38ae9791977a /src/afl-gcc.c | |
parent | b133fa3b6e18d46e53fddba10f09097c9bef6868 (diff) | |
download | afl++-37f865ab244e32c2f9307014eb4da0d5561a45bd.tar.gz |
fix UBSAN handling, update docs
Diffstat (limited to 'src/afl-gcc.c')
-rw-r--r-- | src/afl-gcc.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/afl-gcc.c b/src/afl-gcc.c index 5ead32fb..03468d3d 100644 --- a/src/afl-gcc.c +++ b/src/afl-gcc.c @@ -282,15 +282,11 @@ static void edit_params(u32 argc, char** argv) { } - if (!asan_set) { + if (getenv("AFL_USE_UBSAN")) { - 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"; - - } + 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"; } |