Enable memset_patter ASan hooks for Apple on libafl_frida (#763)

This commit is contained in:
David CARLIER 2022-09-05 00:39:17 +01:00 committed by GitHub
parent 10f5c0f07a
commit 0fe8192976
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -865,6 +865,27 @@ impl AsanRuntime {
*mut wchar_t
);
hook_func!(None, wcscmp, (s1: *const wchar_t, s2: *const wchar_t), i32);
#[cfg(target_vendor = "apple")]
hook_func!(
None,
memset_pattern4,
(s: *mut c_void, c: *const c_void, n: usize),
()
);
#[cfg(target_vendor = "apple")]
hook_func!(
None,
memset_pattern8,
(s: *mut c_void, c: *const c_void, n: usize),
()
);
#[cfg(target_vendor = "apple")]
hook_func!(
None,
memset_pattern16,
(s: *mut c_void, c: *const c_void, n: usize),
()
);
}
#[cfg(target_arch = "x86_64")]