[libafl_frida] Enabled ASan for Apple (#478)
This commit is contained in:
parent
929f687676
commit
b67a7f5b60
@ -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]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user