afl: add debug feature
leave out debug prints when actually fuzzing to increase fuzz performance
This commit is contained in:
parent
9a7c57f524
commit
0d884a65d5
3 changed files with 28 additions and 4 deletions
4
Makefile
4
Makefile
|
@ -60,7 +60,7 @@ AFL_TARGET_CRASH?=crashes
|
|||
afl:
|
||||
rm -rf tests/afl/out
|
||||
(cd tests/afl && \
|
||||
cargo afl build --release --config profile.release.debug-assertions=true && \
|
||||
cargo afl build --no-default-features --release --config profile.release.debug-assertions=true && \
|
||||
(AFL_NO_UI=1 cargo afl fuzz -i in -o out -Mm target/release/${AFL_TARGET} &) && \
|
||||
for i in $$(seq $$((${AFL_JOBS} - 1))); do \
|
||||
AFL_NO_UI=1 cargo afl fuzz -i in -o out -Ss$$i target/release/${AFL_TARGET} & \
|
||||
|
@ -71,7 +71,7 @@ afl:
|
|||
afl_quick:
|
||||
rm -rf tests/afl/out
|
||||
(cd tests/afl && \
|
||||
cargo afl build --release --config profile.release.debug-assertions=true && \
|
||||
cargo afl build --no-default-features --release --config profile.release.debug-assertions=true && \
|
||||
AFL_NO_UI=1 AFL_BENCH_UNTIL_CRASH=1 \
|
||||
cargo afl fuzz -i in -o out -V 60 target/release/${AFL_TARGET})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue