From 891ab3951befbf480a89f63702d111a62a054758 Mon Sep 17 00:00:00 2001 From: van Hauser Date: Mon, 8 Jul 2019 17:12:07 +0200 Subject: fix --- afl-fuzz.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'afl-fuzz.c') diff --git a/afl-fuzz.c b/afl-fuzz.c index ba8d5e07..83b8ce42 100644 --- a/afl-fuzz.c +++ b/afl-fuzz.c @@ -12053,7 +12053,7 @@ int main(int argc, char** argv) { gettimeofday(&tv, &tz); init_seed = tv.tv_sec ^ tv.tv_usec ^ getpid(); - while ((opt = getopt(argc, argv, "+i:o:f:m:t:T:dnCB:S:M:x:Qe:p:s:V:")) > 0) + while ((opt = getopt(argc, argv, "+i:o:f:m:t:T:dnCB:S:M:x:Qe:p:s:V:L:")) > 0) switch (opt) { @@ -12512,6 +12512,9 @@ int main(int argc, char** argv) { if (stop_soon) goto stop_fuzzing; } + // real start time, we reset, so this works correctly with -V + start_time = get_cur_time(); + while (1) { u8 skipped_fuzz; -- cgit 1.4.1