require llvm 10.0.1+ for enhanced pcguard, correct 1MB checks

This commit is contained in:
van Hauser
2020-11-05 08:53:16 +01:00
parent a8de605637
commit 6abe4d124e
2 changed files with 6 additions and 6 deletions

View File

@ -1064,13 +1064,13 @@ int main(int argc, char **argv_orig, char **envp) {
} else if (afl->q_testcase_max_cache_size < 2 * MAX_FILE) {
FATAL("AFL_TESTCACHE_SIZE must be set to %u or more, or 0 to disable",
(2 * MAX_FILE) % 1024000 == 0 ? (2 * MAX_FILE) / 1048576
(2 * MAX_FILE) % 1048576 == 0 ? (2 * MAX_FILE) / 1048576
: 1 + ((2 * MAX_FILE) / 1048576));
} else {
OKF("Enabled testcache with %llu MB",
afl->q_testcase_max_cache_size / 1024000);
afl->q_testcase_max_cache_size / 1048576);
}