diff options
-rw-r--r-- | afl-fuzz.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/afl-fuzz.c b/afl-fuzz.c index b6645c0f..f5e10369 100644 --- a/afl-fuzz.c +++ b/afl-fuzz.c @@ -7512,11 +7512,6 @@ static u8 pilot_fuzzing(char** argv) { stage_short = "flip2"; stage_max = (len << 3) - 1; -#if !defined(__arm__) && !defined(__arm64__) - if (f_data[0] != 0xCF || f_data[1] != 0xFA || f_data[2] != 0xED) - FATAL("Program '%s' is not a 64-bit Mach-O binary", target_path); -#endif - orig_hit_cnt = new_hit_cnt; for (stage_cur = 0; stage_cur < stage_max; stage_cur++) { @@ -11107,6 +11102,11 @@ EXP_ST void check_binary(u8* fname) { close(fd); +#if !defined(__arm__) && !defined(__arm64__) + if (f_data[0] != 0xCF || f_data[1] != 0xFA || f_data[2] != 0xED) + FATAL("Program '%s' is not a 64-bit Mach-O binary", target_path); +#endif + if (f_data[0] == '#' && f_data[1] == '!') { SAYF("\n" cLRD "[-] " cRST |