about summary refs log tree commit diff
path: root/src/afl-tmin.c
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2020-12-23 17:56:39 +0100
committervan Hauser <vh@thc.org>2020-12-23 17:56:39 +0100
commit03849d147a69cf627746a8ad5f1b653367a56ff5 (patch)
tree67fba954a23ef0a6372d29a4b8def1e0cd948588 /src/afl-tmin.c
parent1c79687dfe4dc3260b8141fe9be7c9763679ba80 (diff)
downloadafl++-03849d147a69cf627746a8ad5f1b653367a56ff5.tar.gz
warn on _AFL and __AFL env vars
Diffstat (limited to 'src/afl-tmin.c')
-rw-r--r--src/afl-tmin.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/afl-tmin.c b/src/afl-tmin.c
index 6cb0d458..ed928c7c 100644
--- a/src/afl-tmin.c
+++ b/src/afl-tmin.c
@@ -98,11 +98,11 @@ static sharedmem_t *     shm_fuzz;
 /* Classify tuple counts. This is a slow & naive version, but good enough here.
  */
 
-#define TIMES4(x) x,x,x,x
-#define TIMES8(x) TIMES4(x),TIMES4(x)
-#define TIMES16(x) TIMES8(x),TIMES8(x)
-#define TIMES32(x) TIMES16(x),TIMES16(x)
-#define TIMES64(x) TIMES32(x),TIMES32(x)
+#define TIMES4(x) x, x, x, x
+#define TIMES8(x) TIMES4(x), TIMES4(x)
+#define TIMES16(x) TIMES8(x), TIMES8(x)
+#define TIMES32(x) TIMES16(x), TIMES16(x)
+#define TIMES64(x) TIMES32(x), TIMES32(x)
 static const u8 count_class_lookup[256] = {
 
     [0] = 0,
@@ -116,6 +116,7 @@ static const u8 count_class_lookup[256] = {
     [128] = TIMES64(128)
 
 };
+
 #undef TIMES64
 #undef TIMES32
 #undef TIMES16