Merge branch 'master' of github.com:vanhauser-thc/AFLplusplus

This commit is contained in:
Andrea Fioraldi
2019-12-19 14:35:37 +01:00
16 changed files with 48 additions and 85 deletions

View File

@ -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();

View File

@ -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__ */