[libafl_frida] Enabled ASan for Apple (#478)

This commit is contained in:
Dominik Maier 2022-01-18 18:37:19 +01:00 committed by GitHub
parent 929f687676
commit b67a7f5b60
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,6 +8,7 @@ use nix::{
use backtrace::Backtrace; use backtrace::Backtrace;
#[cfg(any( #[cfg(any(
target_os = "linux", target_os = "linux",
target_vendor = "apple",
all(target_arch = "aarch64", target_os = "android") all(target_arch = "aarch64", target_os = "android")
))] ))]
use libc::{sysconf, _SC_PAGESIZE}; use libc::{sysconf, _SC_PAGESIZE};
@ -15,6 +16,7 @@ use rangemap::RangeSet;
use serde::{Deserialize, Serialize}; use serde::{Deserialize, Serialize};
#[cfg(any( #[cfg(any(
target_os = "linux", target_os = "linux",
target_vendor = "apple",
all(target_arch = "aarch64", target_os = "android") all(target_arch = "aarch64", target_os = "android")
))] ))]
use std::io; use std::io;
@ -72,6 +74,7 @@ impl Allocator {
/// Creates a new [`Allocator`] (not supported on this platform!) /// Creates a new [`Allocator`] (not supported on this platform!)
#[cfg(not(any( #[cfg(not(any(
target_os = "linux", target_os = "linux",
target_vendor = "apple",
all(target_arch = "aarch64", target_os = "android") all(target_arch = "aarch64", target_os = "android")
)))] )))]
#[must_use] #[must_use]
@ -82,6 +85,7 @@ impl Allocator {
/// Creates a new [`Allocator`] /// Creates a new [`Allocator`]
#[cfg(any( #[cfg(any(
target_os = "linux", target_os = "linux",
target_vendor = "apple",
all(target_arch = "aarch64", target_os = "android") all(target_arch = "aarch64", target_os = "android")
))] ))]
#[must_use] #[must_use]