mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-18 04:38:08 +00:00
fix
This commit is contained in:
10
afl-fuzz.c
10
afl-fuzz.c
@ -7512,11 +7512,6 @@ static u8 pilot_fuzzing(char** argv) {
|
|||||||
stage_short = "flip2";
|
stage_short = "flip2";
|
||||||
stage_max = (len << 3) - 1;
|
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;
|
orig_hit_cnt = new_hit_cnt;
|
||||||
|
|
||||||
for (stage_cur = 0; stage_cur < stage_max; stage_cur++) {
|
for (stage_cur = 0; stage_cur < stage_max; stage_cur++) {
|
||||||
@ -11107,6 +11102,11 @@ EXP_ST void check_binary(u8* fname) {
|
|||||||
|
|
||||||
close(fd);
|
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] == '!') {
|
if (f_data[0] == '#' && f_data[1] == '!') {
|
||||||
|
|
||||||
SAYF("\n" cLRD "[-] " cRST
|
SAYF("\n" cLRD "[-] " cRST
|
||||||
|
Reference in New Issue
Block a user