mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-07 07:41:33 +00:00
fix cmin -T
This commit is contained in:
parent
d30272a64e
commit
20dcb40c53
5
afl-cmin
5
afl-cmin
@ -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!
|
# Let's roll!
|
||||||
|
|
||||||
#############################
|
#############################
|
||||||
|
@ -339,6 +339,13 @@ fi
|
|||||||
echo "[*] Are you aware that afl-cmin is faster than this afl-cmin.bash script?"
|
echo "[*] Are you aware that afl-cmin is faster than this afl-cmin.bash script?"
|
||||||
echo "[+] Found $IN_COUNT files for minimizing."
|
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`
|
FIRST_FILE=`ls "$IN_DIR" | head -1`
|
||||||
|
|
||||||
# Make sure that we're not dealing with a directory.
|
# Make sure that we're not dealing with a directory.
|
||||||
|
@ -19,6 +19,7 @@
|
|||||||
- fixed a bug inherited from vanilla AFL where a coverage of
|
- fixed a bug inherited from vanilla AFL where a coverage of
|
||||||
map[123] = 11 would be the same as map[1123] = 1
|
map[123] = 11 would be the same as map[1123] = 1
|
||||||
- warn on crashing inputs
|
- warn on crashing inputs
|
||||||
|
- adjust threads if less inputs than threads specified
|
||||||
- afl-cc:
|
- afl-cc:
|
||||||
- fixed an off-by-one instrumentation of iselect, hurting coverage a bit.
|
- fixed an off-by-one instrumentation of iselect, hurting coverage a bit.
|
||||||
Thanks to @amykweon for spotting and fixing!
|
Thanks to @amykweon for spotting and fixing!
|
||||||
|
Loading…
x
Reference in New Issue
Block a user