diff options
-rw-r--r-- | include/alloc-inl.h | 20 | ||||
-rw-r--r-- | src/afl-as.c | 3 | ||||
-rw-r--r-- | src/afl-fuzz.c | 7 |
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); |