about summary refs log tree commit diff
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2021-08-10 11:12:18 +0200
committerGitHub <noreply@github.com>2021-08-10 11:12:18 +0200
commit40a837780abfee62655d4588b09c9e0dab1d58fd (patch)
treef95774ca1138f989ef14d7fba9f6e66a25d40201
parent5700b3c7500204d386d2f9e0f696b4604f0416a8 (diff)
parentb4c96d686f16320eea609197a8914437ac5eb552 (diff)
downloadafl++-40a837780abfee62655d4588b09c9e0dab1d58fd.tar.gz
Merge pull request #1064 from mqf20/warn_afl_fuzz_stats_paths_total
Warn if `paths_total` property from `fuzzer_stats` file is inconsistent
-rw-r--r--src/afl-fuzz-stats.c15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/afl-fuzz-stats.c b/src/afl-fuzz-stats.c
index e0930234..ead65b1d 100644
--- a/src/afl-fuzz-stats.c
+++ b/src/afl-fuzz-stats.c
@@ -147,8 +147,19 @@ void load_stats_file(afl_state_t *afl) {
             afl->fsrv.total_execs = strtoull(lptr, &nptr, 10);
           break;
         case 10:
-          if (!strcmp(keystring, "paths_total       "))
-            afl->queued_paths = strtoul(lptr, &nptr, 10);
+          if (!strcmp(keystring, "paths_total       ")) {
+
+            u32 paths_total = strtoul(lptr, &nptr, 10);
+            if (paths_total != afl->queued_paths) {
+
+              WARNF(
+                  "queue/ has been modified -- things might not work, you're "
+                  "on your own!");
+
+            }
+
+          }
+
           break;
         case 12:
           if (!strcmp(keystring, "paths_found       "))