mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-08 16:21:32 +00:00
code format
This commit is contained in:
parent
220804714b
commit
55e90c0c36
@ -37,9 +37,9 @@
|
|||||||
/* Disable speed hack in debug mode */
|
/* Disable speed hack in debug mode */
|
||||||
|
|
||||||
#ifdef UNSAFE_MEMORY
|
#ifdef UNSAFE_MEMORY
|
||||||
#ifdef DEBUG_BUILD
|
#ifdef DEBUG_BUILD
|
||||||
#undef UNSAFE_MEMORY
|
#undef UNSAFE_MEMORY
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* User-facing macro to sprintf() to a dynamically allocated buffer. */
|
/* User-facing macro to sprintf() to a dynamically allocated buffer. */
|
||||||
@ -94,11 +94,11 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef UNSAFE_MEMORY
|
#ifndef UNSAFE_MEMORY
|
||||||
#define ALLOC_OFF_HEAD 8
|
#define ALLOC_OFF_HEAD 8
|
||||||
#define ALLOC_OFF_TOTAL (ALLOC_OFF_HEAD + 1)
|
#define ALLOC_OFF_TOTAL (ALLOC_OFF_HEAD + 1)
|
||||||
#else
|
#else
|
||||||
#define ALLOC_OFF_HEAD 0
|
#define ALLOC_OFF_HEAD 0
|
||||||
#define ALLOC_OFF_TOTAL 0
|
#define ALLOC_OFF_TOTAL 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Allocator increments for ck_realloc_block(). */
|
/* Allocator increments for ck_realloc_block(). */
|
||||||
@ -125,9 +125,11 @@
|
|||||||
} \
|
} \
|
||||||
\
|
\
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
#else
|
#else
|
||||||
#define CHECK_PTR(_p) \
|
#define CHECK_PTR(_p) \
|
||||||
do { \
|
do { \
|
||||||
|
\
|
||||||
} while (0)
|
} while (0)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -545,8 +545,7 @@ int main(int argc, char** argv) {
|
|||||||
"AFL_KEEP_ASSEMBLY: leave instrumented assembly files\n"
|
"AFL_KEEP_ASSEMBLY: leave instrumented assembly files\n"
|
||||||
"AFL_AS_FORCE_INSTRUMENT: force instrumentation\n"
|
"AFL_AS_FORCE_INSTRUMENT: force instrumentation\n"
|
||||||
"AFL_HARDEN, AFL_USE_ASAN, AFL_USE_MSAN, ALF_USE_UBSAN:\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);
|
exit(1);
|
||||||
|
|
||||||
|
@ -609,8 +609,11 @@ int main(int argc, char** argv, char** envp) {
|
|||||||
OKF("afl-tmin fork server patch from github.com/nccgroup/TriforceAFL");
|
OKF("afl-tmin fork server patch from github.com/nccgroup/TriforceAFL");
|
||||||
OKF("MOpt Mutator from github.com/puppet-meteor/MOpt-AFL");
|
OKF("MOpt Mutator from github.com/puppet-meteor/MOpt-AFL");
|
||||||
|
|
||||||
if (sync_id && force_deterministic && (getenv("AFL_CUSTOM_MUTATOR_ONLY") || getenv("AFL_PYTHON_ONLY")))
|
if (sync_id && force_deterministic &&
|
||||||
WARNF("Using -M master with the AFL_..._ONLY mutator options will result in no deterministic mutations being done!");
|
(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);
|
check_environment_vars(envp);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user