diff --git a/libafl_frida/src/alloc.rs b/libafl_frida/src/alloc.rs index dc2115ab0c..c79ba5c2f1 100644 --- a/libafl_frida/src/alloc.rs +++ b/libafl_frida/src/alloc.rs @@ -1,7 +1,10 @@ #[cfg(any( target_os = "linux", target_vendor = "apple", - all(target_arch = "aarch64", target_os = "android") + all( + any(target_arch = "aarch64", target_arch = "x86_64"), + target_os = "android" + ) ))] use std::{collections::BTreeMap, ffi::c_void}; @@ -12,7 +15,10 @@ use libafl_bolts::cli::FuzzerOptions; #[cfg(any( target_os = "linux", target_vendor = "apple", - all(target_arch = "aarch64", target_os = "android") + all( + any(target_arch = "aarch64", target_arch = "x86_64"), + target_os = "android" + ) ))] use mmap_rs::{MemoryAreas, MmapFlags, MmapMut, MmapOptions, ReservedMut}; use nix::libc::memset; @@ -85,7 +91,10 @@ impl Allocator { windows, target_os = "linux", target_vendor = "apple", - all(target_arch = "aarch64", target_os = "android") + all( + any(target_arch = "aarch64", target_arch = "x86_64"), + target_os = "android" + ) )))] #[must_use] pub fn new(_: FuzzerOptions) -> Self { @@ -97,7 +106,10 @@ impl Allocator { windows, target_os = "linux", target_vendor = "apple", - all(target_arch = "aarch64", target_os = "android") + all( + any(target_arch = "aarch64", target_arch = "x86_64"), + target_os = "android" + ) ))] #[must_use] pub fn new(options: &FuzzerOptions) -> Self { @@ -559,7 +571,10 @@ impl Default for Allocator { windows, target_os = "linux", target_vendor = "apple", - all(target_arch = "aarch64", target_os = "android") + all( + any(target_arch = "aarch64", target_arch = "x86_64"), + target_os = "android" + ) )))] fn default() -> Self { todo!("Shadow region not yet supported for this platform!");