aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel E. Moelius III <samuel.moelius@trailofbits.com>2023-08-19 08:17:23 -0400
committerSamuel E. Moelius III <samuel.moelius@trailofbits.com>2023-08-19 08:17:23 -0400
commit53c26d086b94c4e5f31dddac0dd212cbff89e957 (patch)
tree12ec2945efd9e8b953b92cac26e4b01acf1039cc
parentf596a297c4de6a5e1a6fb9fbb3b4e18124a24f58 (diff)
downloadafl++-53c26d086b94c4e5f31dddac0dd212cbff89e957.tar.gz
Loosen `ReportCrash` check
-rwxr-xr-xafl-system-config2
-rw-r--r--src/afl-fuzz-init.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/afl-system-config b/afl-system-config
index b50bb06e..e3eb8527 100755
--- a/afl-system-config
+++ b/afl-system-config
@@ -110,7 +110,7 @@ if [ "$PLATFORM" = "Darwin" ] ; then
sysctl kern.sysv.shmall=131072000
echo Settings applied.
echo
- if $(launchctl list 2>/dev/null | grep -q '\.ReportCrash$') ; then
+ if $(launchctl list 2>/dev/null | grep -q '\.ReportCrash\>') ; then
echo
echo Unloading the default crash reporter
SL=/System/Library; PL=com.apple.ReportCrash
diff --git a/src/afl-fuzz-init.c b/src/afl-fuzz-init.c
index 5a530821..4c09fab7 100644
--- a/src/afl-fuzz-init.c
+++ b/src/afl-fuzz-init.c
@@ -2270,7 +2270,7 @@ void check_crash_handling(void) {
reporting the awful way. */
#if !TARGET_OS_IPHONE
- if (system("launchctl list 2>/dev/null | grep -q '\\.ReportCrash$'")) return;
+ if (system("launchctl list 2>/dev/null | grep -q '\\.ReportCrash\\>'")) return;
SAYF(
"\n" cLRD "[-] " cRST