changed run_target

This commit is contained in:
Dominik Maier
2020-04-15 19:23:26 +02:00
parent 48f7f7a17b
commit 0c02a8f4d3
8 changed files with 68 additions and 60 deletions

View File

@ -184,7 +184,9 @@ static void edit_params(u32 argc, char **argv, char **envp) {
sprintf(llvm_fullpath, CLANGPP_BIN);
cc_params[0] = alt_cxx && *alt_cxx ? alt_cxx : (u8 *)llvm_fullpath;
} else if (!strcmp(name, "afl-clang-fast") || !strcmp(name, "afl-clang-lto")) {
} else if (!strcmp(name, "afl-clang-fast") ||
!strcmp(name, "afl-clang-lto")) {
u8 *alt_cc = getenv("AFL_CC");
if (USE_BINDIR)
@ -194,8 +196,12 @@ static void edit_params(u32 argc, char **argv, char **envp) {
cc_params[0] = alt_cc && *alt_cc ? alt_cc : (u8 *)llvm_fullpath;
} else {
fprintf(stderr, "Name of the binary: %s\n", argv[0]);
FATAL("Name of the binary is not a known name, expected afl-clang-fast(++) or afl-clang-lto(++)");
FATAL(
"Name of the binary is not a known name, expected afl-clang-fast(++) "
"or afl-clang-lto(++)");
}
/* There are three ways to compile with afl-clang-fast. In the traditional