about summary refs log tree commit diff
path: root/src/afl-gcc.c
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2020-04-24 12:09:25 +0200
committervan Hauser <vh@thc.org>2020-04-24 12:09:25 +0200
commit766085293da050f84a397161e7a84384620956a2 (patch)
tree1ea92db874c0fc8487742bf926e65e1385cd7bf6 /src/afl-gcc.c
parent4a593d04056ce37743f6922f7d0f0002a6b4e0d5 (diff)
downloadafl++-766085293da050f84a397161e7a84384620956a2.tar.gz
variable map size fix, error reporting through forkserver, code format
Diffstat (limited to 'src/afl-gcc.c')
-rw-r--r--src/afl-gcc.c17
1 files changed, 11 insertions, 6 deletions
diff --git a/src/afl-gcc.c b/src/afl-gcc.c
index ac6fdd62..7eb01c0c 100644
--- a/src/afl-gcc.c
+++ b/src/afl-gcc.c
@@ -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");
 
     }