mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-22 14:19:02 +00:00
env fix
This commit is contained in:
@ -456,9 +456,17 @@ bool ModuleSanitizerCoverageLTO::instrumentModule(
|
||||
|
||||
if ((isatty(2) && !getenv("AFL_QUIET")) || debug) {
|
||||
|
||||
char buf[64] = {};
|
||||
if (instrument_ctx) {
|
||||
|
||||
snprintf(buf, sizeof(buf), " (CTX mode, depth %u)\n",
|
||||
instrument_ctx_max_depth);
|
||||
|
||||
}
|
||||
|
||||
SAYF(cCYA "afl-llvm-lto" VERSION cRST
|
||||
"%s by Marc \"vanHauser\" Heuse <mh@mh-sec.de>\n",
|
||||
instrument_ctx ? " (CTX mode)" : "");
|
||||
buf);
|
||||
|
||||
} else {
|
||||
|
||||
|
@ -828,7 +828,7 @@ static void instrument_mode_old_environ(aflcc_state_t *aflcc) {
|
||||
}
|
||||
|
||||
if (getenv("AFL_LLVM_CTX")) aflcc->instrument_opt_mode |= INSTRUMENT_OPT_CTX;
|
||||
if (getenv("AFL_LLVM_CALLER"))
|
||||
if (getenv("AFL_LLVM_CALLER") || getenv("AFL_LLVM_LTO_CALLER") || getenv("AFL_LLVM_LTO_CTX"))
|
||||
aflcc->instrument_opt_mode |= INSTRUMENT_OPT_CALLER;
|
||||
|
||||
if (getenv("AFL_LLVM_NGRAM_SIZE")) {
|
||||
|
Reference in New Issue
Block a user