add -z switch

This commit is contained in:
vanhauser-thc
2023-04-05 12:59:20 +02:00
parent 5fea071ae9
commit 36127fb197
4 changed files with 14 additions and 2 deletions

View File

@ -132,6 +132,7 @@ static void usage(u8 *argv0, int more_help) {
" fast(default), explore, exploit, seek, rare, mmopt, "
"coe, lin\n"
" quad -- see docs/FAQ.md for more information\n"
" -z - prefer new coverage findings when fuzzing\n"
" -f file - location read by the fuzzed program (default: stdin "
"or @@)\n"
" -t msec - timeout for each run (auto-scaled, default %u ms). "
@ -569,6 +570,10 @@ int main(int argc, char **argv_orig, char **envp) {
afl->max_length = atoi(optarg);
break;
case 'z':
afl->prefer_new = 1;
break;
case 'Z':
afl->old_seed_selection = 1;
break;