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.bash | |
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.bash')
-rwxr-xr-x | afl-cmin.bash | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/afl-cmin.bash b/afl-cmin.bash index 1d080491..b326bee8 100755 --- a/afl-cmin.bash +++ b/afl-cmin.bash @@ -339,6 +339,13 @@ fi echo "[*] Are you aware that afl-cmin is faster than this afl-cmin.bash script?" echo "[+] Found $IN_COUNT files for minimizing." +if [ -n "$THREADS" ]; then + if [ "$IN_COUNT" -lt "$THREADS" ]; then + THREADS=$IN_COUNT + echo "[!] WARNING: less inputs than threads, reducing threads to $THREADS and likely the overhead of threading makes things slower..." + fi +fi + FIRST_FILE=`ls "$IN_DIR" | head -1` # Make sure that we're not dealing with a directory. |