diff options
author | van Hauser <vh@thc.org> | 2020-10-24 19:11:41 +0200 |
---|---|---|
committer | van Hauser <vh@thc.org> | 2020-10-24 19:11:41 +0200 |
commit | ca938e7c4e0c2829625a505732f14410b6299290 (patch) | |
tree | eaae3098bb8c8a912a17ffb4b0ce9d736f87e6f0 /src | |
parent | 18ad8a097cdf84ef3bb3aad11aa2fe51f9f0f967 (diff) | |
download | afl++-ca938e7c4e0c2829625a505732f14410b6299290.tar.gz |
asan_build for tmin and analyze
Diffstat (limited to 'src')
-rw-r--r-- | src/afl-analyze.c | 5 | ||||
-rw-r--r-- | src/afl-tmin.c | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/src/afl-analyze.c b/src/afl-analyze.c index bfdd66e9..0d9ed423 100644 --- a/src/afl-analyze.c +++ b/src/afl-analyze.c @@ -743,12 +743,15 @@ static void set_up_environment(void) { } - if (!strstr(x, "symbolize=0")) { +#fndef ASAN_BUILD + if (!getenv("AFL_DEBUG") && !strstr(x, "symbolize=0")) { FATAL("Custom ASAN_OPTIONS set without symbolize=0 - please fix!"); } +#endif + } x = get_afl_env("MSAN_OPTIONS"); diff --git a/src/afl-tmin.c b/src/afl-tmin.c index e1d08054..efc12d4f 100644 --- a/src/afl-tmin.c +++ b/src/afl-tmin.c @@ -672,12 +672,15 @@ static void set_up_environment(afl_forkserver_t *fsrv) { } - if (!strstr(x, "symbolize=0")) { +#ifndef ASAN_BUILD + if (!getenv("AFL_DEBUG") && !strstr(x, "symbolize=0")) { FATAL("Custom ASAN_OPTIONS set without symbolize=0 - please fix!"); } +#endif + } x = get_afl_env("MSAN_OPTIONS"); |