mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-14 11:08:06 +00:00
Merge branch 'master' of github.com:vanhauser-thc/AFLplusplus
This commit is contained in:
@ -685,13 +685,14 @@ u8 save_if_interesting(char** argv, void* mem, u32 len, u8 fault) {
|
||||
++unique_crashes;
|
||||
if (infoexec) { // if the user wants to be informed on new crashes - do
|
||||
#if !TARGET_OS_IPHONE
|
||||
// that
|
||||
// that
|
||||
if (system(infoexec) == -1)
|
||||
hnb += 0; // we dont care if system errors, but we dont want a
|
||||
// compiler warning either
|
||||
#else
|
||||
WARNF("command execution unsupported");
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
last_crash_time = get_cur_time();
|
||||
|
@ -1905,9 +1905,10 @@ void check_binary(u8* fname) {
|
||||
#else
|
||||
|
||||
#if !defined(__arm__) && !defined(__arm64__)
|
||||
if ((f_data[0] != 0xCF || f_data[1] != 0xFA || f_data[2] != 0xED)
|
||||
&& (f_data[0] != 0xCA || f_data[1] != 0xFE || f_data[2] != 0xBA))
|
||||
FATAL("Program '%s' is not a 64-bit or universal Mach-O binary", target_path);
|
||||
if ((f_data[0] != 0xCF || f_data[1] != 0xFA || f_data[2] != 0xED) &&
|
||||
(f_data[0] != 0xCA || f_data[1] != 0xFE || f_data[2] != 0xBA))
|
||||
FATAL("Program '%s' is not a 64-bit or universal Mach-O binary",
|
||||
target_path);
|
||||
#endif
|
||||
|
||||
#endif /* ^!__APPLE__ */
|
||||
|
Reference in New Issue
Block a user