diff options
author | van Hauser <vh@thc.org> | 2020-12-20 14:30:06 +0100 |
---|---|---|
committer | van Hauser <vh@thc.org> | 2020-12-20 14:30:06 +0100 |
commit | 98ee17bc47b1f1d4664be9955a72727fff8e51fa (patch) | |
tree | 5c49dd81c9ab6c47538350b53d8b1fd11abe3f6c /src/afl-fuzz.c | |
parent | a6116ed533e5db74d654bedda9e747f87cbd8494 (diff) | |
download | afl++-98ee17bc47b1f1d4664be9955a72727fff8e51fa.tar.gz |
fix endless loop in afl-cc allow/blocklists starting a line with a comment
Diffstat (limited to 'src/afl-fuzz.c')
-rw-r--r-- | src/afl-fuzz.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/afl-fuzz.c b/src/afl-fuzz.c index e0d46f7e..2af374f2 100644 --- a/src/afl-fuzz.c +++ b/src/afl-fuzz.c @@ -157,7 +157,8 @@ static void usage(u8 *argv0, int more_help) { if (more_help > 1) { #if defined USE_COLOR && !defined ALWAYS_COLORED - #define DYN_COLOR "AFL_NO_COLOR or AFL_NO_COLOUR: switch colored console output off\n" + #define DYN_COLOR \ + "AFL_NO_COLOR or AFL_NO_COLOUR: switch colored console output off\n" #else #define DYN_COLOR #endif @@ -307,11 +308,16 @@ int main(int argc, char **argv_orig, char **envp) { struct timeval tv; struct timezone tz; -#if defined USE_COLOR && defined ALWAYS_COLORED + #if defined USE_COLOR && defined ALWAYS_COLORED if (getenv("AFL_NO_COLOR") || getenv("AFL_NO_COLOUR")) { - WARNF("Setting AFL_NO_COLOR has no effect (colors are configured on at compile time)"); + + WARNF( + "Setting AFL_NO_COLOR has no effect (colors are configured on at " + "compile time)"); + } -#endif + + #endif char **argv = argv_cpy_dup(argc, argv_orig); |