1
1
#[ cfg( any(
2
2
target_os = "linux" ,
3
3
target_vendor = "apple" ,
4
- all( target_arch = "aarch64" , target_os = "android" )
4
+ all(
5
+ any( target_arch = "aarch64" , target_arch = "x86_64" ) ,
6
+ target_os = "android"
7
+ )
5
8
) ) ]
6
9
use std:: { collections:: BTreeMap , ffi:: c_void} ;
7
10
@@ -12,7 +15,10 @@ use libafl_bolts::cli::FuzzerOptions;
12
15
#[ cfg( any(
13
16
target_os = "linux" ,
14
17
target_vendor = "apple" ,
15
- all( target_arch = "aarch64" , target_os = "android" )
18
+ all(
19
+ any( target_arch = "aarch64" , target_arch = "x86_64" ) ,
20
+ target_os = "android"
21
+ )
16
22
) ) ]
17
23
use mmap_rs:: { MemoryAreas , MmapFlags , MmapMut , MmapOptions , ReservedMut } ;
18
24
use nix:: libc:: memset;
@@ -85,7 +91,10 @@ impl Allocator {
85
91
windows,
86
92
target_os = "linux" ,
87
93
target_vendor = "apple" ,
88
- all( target_arch = "aarch64" , target_os = "android" )
94
+ all(
95
+ any( target_arch = "aarch64" , target_arch = "x86_64" ) ,
96
+ target_os = "android"
97
+ )
89
98
) ) ) ]
90
99
#[ must_use]
91
100
pub fn new ( _: FuzzerOptions ) -> Self {
@@ -97,7 +106,10 @@ impl Allocator {
97
106
windows,
98
107
target_os = "linux" ,
99
108
target_vendor = "apple" ,
100
- all( target_arch = "aarch64" , target_os = "android" )
109
+ all(
110
+ any( target_arch = "aarch64" , target_arch = "x86_64" ) ,
111
+ target_os = "android"
112
+ )
101
113
) ) ]
102
114
#[ must_use]
103
115
pub fn new ( options : & FuzzerOptions ) -> Self {
@@ -559,7 +571,10 @@ impl Default for Allocator {
559
571
windows,
560
572
target_os = "linux" ,
561
573
target_vendor = "apple" ,
562
- all( target_arch = "aarch64" , target_os = "android" )
574
+ all(
575
+ any( target_arch = "aarch64" , target_arch = "x86_64" ) ,
576
+ target_os = "android"
577
+ )
563
578
) ) ) ]
564
579
fn default ( ) -> Self {
565
580
todo ! ( "Shadow region not yet supported for this platform!" ) ;
0 commit comments