fix endless loop in afl-cc allow/blocklists starting a line with a comment

This commit is contained in:
van Hauser
2020-12-20 14:30:06 +01:00
parent a6116ed533
commit 98ee17bc47
9 changed files with 78 additions and 50 deletions

View File

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