mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-10 01:01:33 +00:00
commit
aa95728c35
@ -96,6 +96,10 @@
|
|||||||
#endif
|
#endif
|
||||||
#endif /* __linux__ */
|
#endif /* __linux__ */
|
||||||
|
|
||||||
|
#ifdef __APPLE__
|
||||||
|
#include <TargetConditionals.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef SIMPLE_FILES
|
#ifndef SIMPLE_FILES
|
||||||
#define CASE_PREFIX "id:"
|
#define CASE_PREFIX "id:"
|
||||||
#else
|
#else
|
||||||
|
@ -683,12 +683,16 @@ u8 save_if_interesting(char** argv, void* mem, u32 len, u8 fault) {
|
|||||||
#endif /* ^!SIMPLE_FILES */
|
#endif /* ^!SIMPLE_FILES */
|
||||||
|
|
||||||
++unique_crashes;
|
++unique_crashes;
|
||||||
|
if (infoexec) { // if the user wants to be informed on new crashes - do
|
||||||
if (infoexec) // if the user wants to be informed on new crashes - do
|
#if !TARGET_OS_IPHONE
|
||||||
// that
|
// that
|
||||||
if (system(infoexec) == -1)
|
if (system(infoexec) == -1)
|
||||||
hnb += 0; // we dont care if system errors, but we dont want a
|
hnb += 0; // we dont care if system errors, but we dont want a
|
||||||
// compiler warning either
|
// compiler warning either
|
||||||
|
#else
|
||||||
|
WARNF("command execution unsupported");
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
last_crash_time = get_cur_time();
|
last_crash_time = get_cur_time();
|
||||||
last_crash_execs = total_execs;
|
last_crash_execs = total_execs;
|
||||||
|
@ -1426,6 +1426,7 @@ void check_crash_handling(void) {
|
|||||||
until I get a box to test the code. So, for now, we check for crash
|
until I get a box to test the code. So, for now, we check for crash
|
||||||
reporting the awful way. */
|
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(
|
SAYF(
|
||||||
@ -1443,6 +1444,7 @@ void check_crash_handling(void) {
|
|||||||
" launchctl unload -w ${SL}/LaunchAgents/${PL}.plist\n"
|
" launchctl unload -w ${SL}/LaunchAgents/${PL}.plist\n"
|
||||||
" sudo launchctl unload -w ${SL}/LaunchDaemons/${PL}.Root.plist\n");
|
" sudo launchctl unload -w ${SL}/LaunchDaemons/${PL}.Root.plist\n");
|
||||||
|
|
||||||
|
#endif
|
||||||
if (!getenv("AFL_I_DONT_CARE_ABOUT_MISSING_CRASHES"))
|
if (!getenv("AFL_I_DONT_CARE_ABOUT_MISSING_CRASHES"))
|
||||||
FATAL("Crash reporter detected");
|
FATAL("Crash reporter detected");
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user