diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/afl-as.c | 26 |
1 files changed, 9 insertions, 17 deletions
diff --git a/src/afl-as.c b/src/afl-as.c index 12192838..941105df 100644 --- a/src/afl-as.c +++ b/src/afl-as.c @@ -479,27 +479,19 @@ static void add_instrumentation(void) { WARNF("No instrumentation targets found%s.", pass_thru ? " (pass-thru mode)" : ""); else { + char modeline[100]; - snprintf(modeline, sizeof(modeline), "%s%s%s%s", - getenv("AFL_HARDEN") - ? "hardened" - : "non-hardened", - getenv("AFL_USE_ASAN") - ? ", ASAN" - : "", - getenv("AFL_USE_MSAN") - ? ", MSAN" - : "", - getenv("AFL_USE_UBSAN") - ? ", UBSAN" - : "" - ); + snprintf(modeline, sizeof(modeline), "%s%s%s%s", + getenv("AFL_HARDEN") ? "hardened" : "non-hardened", + getenv("AFL_USE_ASAN") ? ", ASAN" : "", + getenv("AFL_USE_MSAN") ? ", MSAN" : "", + getenv("AFL_USE_UBSAN") ? ", UBSAN" : ""); OKF("Instrumented %u locations (%s-bit, %s mode, ratio %u%%).", ins_lines, - use_64bit ? "64" : "32", - modeline, - inst_ratio); + use_64bit ? "64" : "32", modeline, inst_ratio); + } + } } |