From b67a7f5b60ea2e76b9e087f4e5d1f95644dc429b Mon Sep 17 00:00:00 2001 From: Dominik Maier Date: Tue, 18 Jan 2022 18:37:19 +0100 Subject: [PATCH] [libafl_frida] Enabled ASan for Apple (#478) --- libafl_frida/src/alloc.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libafl_frida/src/alloc.rs b/libafl_frida/src/alloc.rs index 3a77e475cd..cc9f19f5fa 100644 --- a/libafl_frida/src/alloc.rs +++ b/libafl_frida/src/alloc.rs @@ -8,6 +8,7 @@ use nix::{ use backtrace::Backtrace; #[cfg(any( target_os = "linux", + target_vendor = "apple", all(target_arch = "aarch64", target_os = "android") ))] use libc::{sysconf, _SC_PAGESIZE}; @@ -15,6 +16,7 @@ use rangemap::RangeSet; use serde::{Deserialize, Serialize}; #[cfg(any( target_os = "linux", + target_vendor = "apple", all(target_arch = "aarch64", target_os = "android") ))] use std::io; @@ -72,6 +74,7 @@ impl Allocator { /// Creates a new [`Allocator`] (not supported on this platform!) #[cfg(not(any( target_os = "linux", + target_vendor = "apple", all(target_arch = "aarch64", target_os = "android") )))] #[must_use] @@ -82,6 +85,7 @@ impl Allocator { /// Creates a new [`Allocator`] #[cfg(any( target_os = "linux", + target_vendor = "apple", all(target_arch = "aarch64", target_os = "android") ))] #[must_use]