From 3f65f534aaa8cffec5effc9487718028ee751a1e Mon Sep 17 00:00:00 2001 From: hexcoder- Date: Sat, 28 Sep 2019 13:19:27 +0200 Subject: On Mac OS X afl-fuzz wants the crash reporter to be disabled. Add the corresponding commands to the script. The test, if they need to be run, is not tested yet (just copied). --- afl-system-config | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/afl-system-config b/afl-system-config index 6a495f0a..5e3103b6 100755 --- a/afl-system-config +++ b/afl-system-config @@ -48,5 +48,13 @@ if [ "$PLATFORM" = "OpenBSD" ] ; then echo echo 'System security features cannot be disabled on OpenBSD.' fi +if [ "$PLATFORM" = "Darwin" ] ; then + if [ $(launchctl list 2>/dev/null | grep -q '\.ReportCrash$') ] ; then +echo We unload the default crash reporter here +SL=/System/Library; PL=com.apple.ReportCrash +launchctl unload -w ${SL}/LaunchAgents/${PL}.plist +sudo launchctl unload -w ${SL}/LaunchDaemons/${PL}.Root.plist + fi +fi echo echo Also use AFL_TMPDIR to use a tmpfs for the input file -- cgit 1.4.1