variable map size fix, error reporting through forkserver, code format

This commit is contained in:
van Hauser
2020-04-24 12:09:25 +02:00
parent 4a593d0405
commit 766085293d
9 changed files with 192 additions and 65 deletions

View File

@ -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");
}