diff options
author | hexcoder- <heiko@hexco.de> | 2020-11-17 21:07:29 +0100 |
---|---|---|
committer | hexcoder- <heiko@hexco.de> | 2020-11-17 21:07:29 +0100 |
commit | 54fdec0e51d17ac47582ca23c32ce10da5591aa2 (patch) | |
tree | fc5d2a3297bb4708e1aec1fd3f48670ea94c7fc7 /src | |
parent | add108ec2386736f683e34172311af2c5a9d6237 (diff) | |
download | afl++-54fdec0e51d17ac47582ca23c32ce10da5591aa2.tar.gz |
fix: avoid preprocessor logic in macro arguments (not portable)
Diffstat (limited to 'src')
-rw-r--r-- | src/afl-cc.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/afl-cc.c b/src/afl-cc.c index 5d8d33a5..ef4d2c74 100644 --- a/src/afl-cc.c +++ b/src/afl-cc.c @@ -1326,15 +1326,18 @@ int main(int argc, char **argv, char **envp) { " AFL_GCC_INSTRUMENT_FILE: enable selective instrumentation by " "filename\n"); +#if LLVM_MAJOR < 9 +#define COUNTER_BEHAVIOUR " AFL_LLVM_NOT_ZERO: use cycling trace counters that skip zero\n" +#else +#define COUNTER_BEHAVIOUR " AFL_LLVM_SKIP_NEVERZERO: do not skip zero on trace counters\n" +#endif if (have_llvm) SAYF( "\nLLVM/LTO/afl-clang-fast/afl-clang-lto specific environment " "variables:\n" -#if LLVM_MAJOR < 9 - " AFL_LLVM_NOT_ZERO: use cycling trace counters that skip zero\n" -#else - " AFL_LLVM_SKIP_NEVERZERO: do not skip zero on trace counters\n" -#endif + + COUNTER_BEHAVIOUR + " AFL_LLVM_DICT2FILE: generate an afl dictionary based on found " "comparisons\n" " AFL_LLVM_LAF_ALL: enables all LAF splits/transforms\n" |