about summary refs log tree commit diff
diff options
context:
space:
mode:
authorhexcoder- <heiko@hexco.de>2019-09-28 13:19:27 +0200
committerhexcoder- <heiko@hexco.de>2019-09-28 13:19:27 +0200
commit3f65f534aaa8cffec5effc9487718028ee751a1e (patch)
tree75c429054c806015934eaaf5dfb309444a97e7a0
parent1fc328b2ea489bd3ad1a262049da652e7eba0f0d (diff)
downloadafl++-3f65f534aaa8cffec5effc9487718028ee751a1e.tar.gz
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).
-rwxr-xr-xafl-system-config8
1 files changed, 8 insertions, 0 deletions
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