LTO: make dynamic map the default

This commit is contained in:
van Hauser
2020-08-10 23:42:33 +02:00
parent 7b5a18428e
commit 701fb95d24
4 changed files with 40 additions and 28 deletions

View File

@ -293,8 +293,8 @@ static void report_error_and_exit(int error) {
FATAL(
"the fuzzing target reports that hardcoded map address might be the "
"reason the mmap of the shared memory failed. Solution: recompile "
"the target with either afl-clang-lto and the environment variable "
"AFL_LLVM_MAP_DYNAMIC set or recompile with afl-clang-fast.");
"the target with either afl-clang-lto and do not set "
"AFL_LLVM_MAP_ADDR or recompile with afl-clang-fast.");
break;
case FS_ERROR_SHM_OPEN:
FATAL("the fuzzing target reports that the shm_open() call failed.");
@ -828,8 +828,8 @@ void afl_fsrv_start(afl_forkserver_t *fsrv, char **argv,
SAYF("\n" cLRD "[-] " cRST
"Hmm, looks like the target binary terminated before we could"
" complete a handshake with the injected code.\n"
"If the target was compiled with afl-clang-lto then recompiling with"
" AFL_LLVM_MAP_DYNAMIC might solve your problem.\n"
"If the target was compiled with afl-clang-lto and AFL_LLVM_MAP_ADDR"
" then recompiling without this parameter.\n"
"Otherwise there is a horrible bug in the fuzzer.\n"
"Poke <afl-users@googlegroups.com> for troubleshooting tips.\n");
@ -860,9 +860,8 @@ void afl_fsrv_start(afl_forkserver_t *fsrv, char **argv,
" - the target was compiled with afl-clang-lto and a constructor "
"was\n"
" instrumented, recompiling with AFL_LLVM_MAP_DYNAMIC might solve "
"your\n"
" problem\n\n"
" instrumented, recompiling without AFL_LLVM_MAP_ADDR might solve "
"your problem\n\n"
" - Less likely, there is a horrible bug in the fuzzer. If other "
"options\n"