From 7fcc80241557db6655ac07ed4b81debe86a7711c Mon Sep 17 00:00:00 2001 From: Noah Hellman Date: Mon, 20 Mar 2023 17:43:09 +0100 Subject: [PATCH] make: nonzero exit when afl_quick detects crashes ci job still goes green when fuzzing fails, otherwise --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index d317391..be90c40 100644 --- a/Makefile +++ b/Makefile @@ -74,6 +74,7 @@ afl_quick: 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}) + [ -z "$$(find tests/afl/out/default/crashes -type f -name 'id:*')" ] afl_crash: set +e; \