Update mach crate to maintained fork (#3203)

This commit is contained in:
Dominik Maier 2025-05-08 13:09:52 +02:00 committed by GitHub
parent d8f8640982
commit 8d5a80d4b2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 5 additions and 4 deletions

View File

@ -217,7 +217,7 @@ windows-result = "0.3.0"
windows = { workspace = true }
[target.'cfg(target_vendor = "apple")'.dependencies]
mach = "0.3.2"
mach2 = "0.4.2"
#[profile.release]
#lto = true

View File

@ -12,7 +12,7 @@ use std::process::Command;
#[cfg(unix)]
use libc::siginfo_t;
#[cfg(target_vendor = "apple")]
use mach::{
use mach2::{
message::mach_msg_type_number_t,
port::mach_port_t,
traps::mach_task_self,

View File

@ -10,7 +10,8 @@ use libafl::{
Error,
executors::forkserver::{
FORKSRV_FD, FS_ERROR_SHM_OPEN, FS_NEW_OPT_AUTODTCT, FS_NEW_OPT_MAPSIZE,
FS_NEW_OPT_SHDMEM_FUZZ, FS_NEW_VERSION_MAX, FS_OPT_ERROR, SHM_ENV_VAR, SHM_FUZZ_ENV_VAR, SHM_CMPLOG_ENV_VAR,
FS_NEW_OPT_SHDMEM_FUZZ, FS_NEW_VERSION_MAX, FS_OPT_ERROR, SHM_CMPLOG_ENV_VAR, SHM_ENV_VAR,
SHM_FUZZ_ENV_VAR,
},
};
use libafl_bolts::os::{ChildHandle, ForkResult};
@ -19,9 +20,9 @@ use nix::{
unistd::Pid,
};
use crate::coverage::{__afl_map_size, EDGES_MAP_PTR, INPUT_LENGTH_PTR, INPUT_PTR, SHM_FUZZING};
#[cfg(feature = "cmplog")]
use crate::cmps::CMPLOG_MAP_PTR;
use crate::coverage::{__afl_map_size, EDGES_MAP_PTR, INPUT_LENGTH_PTR, INPUT_PTR, SHM_FUZZING};
#[cfg(any(target_os = "linux", target_vendor = "apple"))]
use crate::coverage::{__token_start, __token_stop};