aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2021-01-27 08:41:45 +0100
committervan Hauser <vh@thc.org>2021-01-27 08:41:45 +0100
commit2044c7e2b548e2747fde5deff65c78dd05e2ec8d (patch)
tree54c4c2c82ce93e093af9d99923af1aaa820e98d0
parent6b721900d5fb0040333780c7b3b6789cd35a0fea (diff)
downloadafl++-2044c7e2b548e2747fde5deff65c78dd05e2ec8d.tar.gz
fix include
-rw-r--r--include/envs.h2
-rw-r--r--src/afl-fuzz-init.c5
2 files changed, 3 insertions, 4 deletions
diff --git a/include/envs.h b/include/envs.h
index 756cd737..931cff15 100644
--- a/include/envs.h
+++ b/include/envs.h
@@ -48,7 +48,7 @@ static char *afl_environment_variables[] = {
"AFL_EXIT_WHEN_DONE",
"AFL_FAST_CAL",
"AFL_FORCE_UI",
- "AFL_FUZZER_ARGS". // oss-fuzz
+ "AFL_FUZZER_ARGS", // oss-fuzz
"AFL_GCC_ALLOWLIST",
"AFL_GCC_DENYLIST",
"AFL_GCC_BLOCKLIST",
diff --git a/src/afl-fuzz-init.c b/src/afl-fuzz-init.c
index 4f59a42f..a428923d 100644
--- a/src/afl-fuzz-init.c
+++ b/src/afl-fuzz-init.c
@@ -482,9 +482,8 @@ void read_foreign_testcases(afl_state_t *afl, int first) {
}
- /* We use scandir() + alphasort() rather than readdir() because otherwise,
- the ordering of test cases would vary somewhat randomly and would be
- difficult to control. */
+ /* We do not use sorting yet and do a more expensive ctime check instead.
+ a ctimesort() implementation would be better though. */
nl_cnt = scandir(afl->foreign_syncs[iter].dir, &nl, NULL, NULL);