about summary refs log tree commit diff
path: root/src/afl-fuzz.c
diff options
context:
space:
mode:
authorvanhauser-thc <vh@thc.org>2023-04-05 12:59:20 +0200
committervanhauser-thc <vh@thc.org>2023-04-05 12:59:20 +0200
commit36127fb1970746f53fec44f9394061f57a4e94c3 (patch)
tree74cf2ac1e1ab8a7bb4de662af135634003269803 /src/afl-fuzz.c
parent5fea071ae99dc68d634afd996fcd280f57f78002 (diff)
downloadafl++-36127fb1970746f53fec44f9394061f57a4e94c3.tar.gz
add -z switch
Diffstat (limited to 'src/afl-fuzz.c')
-rw-r--r--src/afl-fuzz.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/afl-fuzz.c b/src/afl-fuzz.c
index 3380fd90..0f01360e 100644
--- a/src/afl-fuzz.c
+++ b/src/afl-fuzz.c
@@ -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;