Skip to content

Commit

Permalink
[libafl_frida] Enabled ASan for Apple (#478)
Browse files Browse the repository at this point in the history
  • Loading branch information
domenukk committed Jan 18, 2022
1 parent 929f687 commit b67a7f5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libafl_frida/src/alloc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,15 @@ 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};
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;
Expand Down Expand Up @@ -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]
Expand All @@ -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]
Expand Down

0 comments on commit b67a7f5

Please sign in to comment.