mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-17 04:18:06 +00:00
fix: avoid preprocessor logic in macro arguments (not portable)
This commit is contained in:
13
src/afl-cc.c
13
src/afl-cc.c
@ -1326,15 +1326,18 @@ int main(int argc, char **argv, char **envp) {
|
|||||||
" AFL_GCC_INSTRUMENT_FILE: enable selective instrumentation by "
|
" AFL_GCC_INSTRUMENT_FILE: enable selective instrumentation by "
|
||||||
"filename\n");
|
"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)
|
if (have_llvm)
|
||||||
SAYF(
|
SAYF(
|
||||||
"\nLLVM/LTO/afl-clang-fast/afl-clang-lto specific environment "
|
"\nLLVM/LTO/afl-clang-fast/afl-clang-lto specific environment "
|
||||||
"variables:\n"
|
"variables:\n"
|
||||||
#if LLVM_MAJOR < 9
|
|
||||||
" AFL_LLVM_NOT_ZERO: use cycling trace counters that skip zero\n"
|
COUNTER_BEHAVIOUR
|
||||||
#else
|
|
||||||
" AFL_LLVM_SKIP_NEVERZERO: do not skip zero on trace counters\n"
|
|
||||||
#endif
|
|
||||||
" AFL_LLVM_DICT2FILE: generate an afl dictionary based on found "
|
" AFL_LLVM_DICT2FILE: generate an afl dictionary based on found "
|
||||||
"comparisons\n"
|
"comparisons\n"
|
||||||
" AFL_LLVM_LAF_ALL: enables all LAF splits/transforms\n"
|
" AFL_LLVM_LAF_ALL: enables all LAF splits/transforms\n"
|
||||||
|
Reference in New Issue
Block a user