diff options
author | van Hauser <vh@thc.org> | 2019-07-14 20:10:43 +0200 |
---|---|---|
committer | van Hauser <vh@thc.org> | 2019-07-14 20:10:43 +0200 |
commit | 82d70e0720122ee128db768afef1c77900d71e9a (patch) | |
tree | 2762663137affd047894c6558623e6cd4a301626 | |
parent | 054976c3903771e2267cfcf67f38fec3ced2ab77 (diff) | |
download | afl++-82d70e0720122ee128db768afef1c77900d71e9a.tar.gz |
fix
-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 |