aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2020-02-17 08:26:26 +0100
committervan Hauser <vh@thc.org>2020-02-17 08:26:26 +0100
commit55e90c0c360203491e7b1dc22842aba0dc865ba5 (patch)
treecbe4c561ba22b5e6bc050f8db99bc1e2df7b09af
parent220804714bb4cc8722940fd4fe6a0604901dfd2a (diff)
downloadafl++-55e90c0c360203491e7b1dc22842aba0dc865ba5.tar.gz
code format
-rw-r--r--include/alloc-inl.h20
-rw-r--r--src/afl-as.c3
-rw-r--r--src/afl-fuzz.c7
3 files changed, 17 insertions, 13 deletions
diff --git a/include/alloc-inl.h b/include/alloc-inl.h
index cc88bd5c..26ce7d22 100644
--- a/include/alloc-inl.h
+++ b/include/alloc-inl.h
@@ -37,9 +37,9 @@
/* Disable speed hack in debug mode */
#ifdef UNSAFE_MEMORY
- #ifdef DEBUG_BUILD
- #undef UNSAFE_MEMORY
- #endif
+#ifdef DEBUG_BUILD
+#undef UNSAFE_MEMORY
+#endif
#endif
/* User-facing macro to sprintf() to a dynamically allocated buffer. */
@@ -94,11 +94,11 @@
#endif
#ifndef UNSAFE_MEMORY
- #define ALLOC_OFF_HEAD 8
- #define ALLOC_OFF_TOTAL (ALLOC_OFF_HEAD + 1)
+#define ALLOC_OFF_HEAD 8
+#define ALLOC_OFF_TOTAL (ALLOC_OFF_HEAD + 1)
#else
- #define ALLOC_OFF_HEAD 0
- #define ALLOC_OFF_TOTAL 0
+#define ALLOC_OFF_HEAD 0
+#define ALLOC_OFF_TOTAL 0
#endif
/* Allocator increments for ck_realloc_block(). */
@@ -125,9 +125,11 @@
} \
\
} while (0)
+
#else
-#define CHECK_PTR(_p) \
- do { \
+#define CHECK_PTR(_p) \
+ do { \
+ \
} while (0)
#endif
diff --git a/src/afl-as.c b/src/afl-as.c
index 6ca233ad..beef913c 100644
--- a/src/afl-as.c
+++ b/src/afl-as.c
@@ -545,8 +545,7 @@ int main(int argc, char** argv) {
"AFL_KEEP_ASSEMBLY: leave instrumented assembly files\n"
"AFL_AS_FORCE_INSTRUMENT: force instrumentation\n"
"AFL_HARDEN, AFL_USE_ASAN, AFL_USE_MSAN, ALF_USE_UBSAN:\n"
- " used in the instrumentation summary message\n"
- );
+ " used in the instrumentation summary message\n");
exit(1);
diff --git a/src/afl-fuzz.c b/src/afl-fuzz.c
index 5e5bc171..0c73ca2c 100644
--- a/src/afl-fuzz.c
+++ b/src/afl-fuzz.c
@@ -609,8 +609,11 @@ int main(int argc, char** argv, char** envp) {
OKF("afl-tmin fork server patch from github.com/nccgroup/TriforceAFL");
OKF("MOpt Mutator from github.com/puppet-meteor/MOpt-AFL");
- if (sync_id && force_deterministic && (getenv("AFL_CUSTOM_MUTATOR_ONLY") || getenv("AFL_PYTHON_ONLY")))
- WARNF("Using -M master with the AFL_..._ONLY mutator options will result in no deterministic mutations being done!");
+ if (sync_id && force_deterministic &&
+ (getenv("AFL_CUSTOM_MUTATOR_ONLY") || getenv("AFL_PYTHON_ONLY")))
+ WARNF(
+ "Using -M master with the AFL_..._ONLY mutator options will result in "
+ "no deterministic mutations being done!");
check_environment_vars(envp);