diff options
author | van Hauser <vh@thc.org> | 2023-07-15 09:42:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-15 09:42:04 +0200 |
commit | 7f17a94349830a54d2c899f56b149c0d7f9ffb9c (patch) | |
tree | 7ec0d2b73ca236c73d8d2b337396f320bcf1728d /afl-cmin | |
parent | 497ff5ff7962ee492fef315227366d658c637ab2 (diff) | |
parent | 2b8e528a3b5f44df590b8f727983d142857d0433 (diff) | |
download | afl++-7f17a94349830a54d2c899f56b149c0d7f9ffb9c.tar.gz |
Merge pull request #1798 from AFLplusplus/dev
push to stable
Diffstat (limited to 'afl-cmin')
-rwxr-xr-x | afl-cmin | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/afl-cmin b/afl-cmin index d0bbed2b..23532b63 100755 --- a/afl-cmin +++ b/afl-cmin @@ -425,7 +425,7 @@ BEGIN { cmd = "stat --version 2>/dev/null" cmd | getline statversion close(cmd) - if (statversion ~ /GNU coreutils/) { + if (statversion ~ /GNU coreutils/ || statversion ~ /BusyBox/) { stat_format = "-c '%s %n'" # GNU } else { stat_format = "-f '%z %N'" # *BSD, MacOS @@ -493,6 +493,11 @@ BEGIN { } } + if (in_count < threads) { + threads = in_count + print "[!] WARNING: less inputs than threads, reducing threads to "threads" and likely the overhead of threading makes things slower..." + } + # Let's roll! ############################# |