mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-23 06:28:51 +00:00
variable map size fix, error reporting through forkserver, code format
This commit is contained in:
@ -157,8 +157,7 @@ static void edit_params(u32 argc, char **argv) {
|
||||
} else {
|
||||
|
||||
fprintf(stderr, "Name of the binary: %s\n", argv[0]);
|
||||
FATAL(
|
||||
"Name of the binary is not a known name, expected afl-clang(++)");
|
||||
FATAL("Name of the binary is not a known name, expected afl-clang(++)");
|
||||
|
||||
}
|
||||
|
||||
@ -173,15 +172,22 @@ static void edit_params(u32 argc, char **argv) {
|
||||
#ifdef __APPLE__
|
||||
|
||||
if (!strcmp(name, "afl-g++")) {
|
||||
|
||||
cc_params[0] = getenv("AFL_CXX");
|
||||
|
||||
} else if (!strcmp(name, "afl-gcj")) {
|
||||
|
||||
cc_params[0] = getenv("AFL_GCJ");
|
||||
|
||||
} else if (!strcmp(name, "afl-gcc")) {
|
||||
|
||||
cc_params[0] = getenv("AFL_CC");
|
||||
|
||||
} else {
|
||||
|
||||
fprintf(stderr, "Name of the binary: %s\n", argv[0]);
|
||||
FATAL(
|
||||
"Name of the binary is not a known name, expected afl-gcc/g++/gcj");
|
||||
FATAL("Name of the binary is not a known name, expected afl-gcc/g++/gcj");
|
||||
|
||||
}
|
||||
|
||||
if (!cc_params[0]) {
|
||||
@ -218,8 +224,7 @@ static void edit_params(u32 argc, char **argv) {
|
||||
} else {
|
||||
|
||||
fprintf(stderr, "Name of the binary: %s\n", argv[0]);
|
||||
FATAL(
|
||||
"Name of the binary is not a known name, expected afl-gcc/g++/gcj");
|
||||
FATAL("Name of the binary is not a known name, expected afl-gcc/g++/gcj");
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user