code format

This commit is contained in:
van Hauser 2020-02-17 08:26:26 +01:00
parent 220804714b
commit 55e90c0c36
3 changed files with 17 additions and 13 deletions

View File

@ -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 { \
\
} while (0)
#endif

View File

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

View File

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