clippy
This commit is contained in:
parent
b537539b54
commit
d669b063f4
@ -182,24 +182,24 @@ impl AsanRuntime {
|
||||
/*
|
||||
unsafe {
|
||||
let mem = self.allocator.alloc(0xac + 2, 8);
|
||||
mprotect(
|
||||
(self.shadow_check_func.unwrap() as usize & 0xffffffffffff000) as *mut c_void,
|
||||
0x1000,
|
||||
ProtFlags::PROT_READ | ProtFlags::PROT_WRITE | ProtFlags::PROT_EXEC,
|
||||
)
|
||||
};
|
||||
mprotect(
|
||||
(self.shadow_check_func.unwrap() as usize & 0xffffffffffff000) as *mut c_void,
|
||||
0x1000,
|
||||
ProtFlags::PROT_READ | ProtFlags::PROT_WRITE | ProtFlags::PROT_EXEC,
|
||||
)
|
||||
.unwrap();
|
||||
println!("Test0");
|
||||
/*
|
||||
0x555555916ce9 <libafl_frida::asan_rt::AsanRuntime::init+13033> je libafl_frida::asan_rt::AsanRuntime::init+14852 <libafl_frida::asan_rt::AsanRuntime::init+14852>
|
||||
0x555555916cef <libafl_frida::asan_rt::AsanRuntime::init+13039> mov rdi, r15 <0x555558392338>
|
||||
*/
|
||||
assert!((self.shadow_check_func.unwrap())(
|
||||
((mem as usize) + 0) as *const c_void,
|
||||
(mem as usize) as *const c_void,
|
||||
0x00
|
||||
));
|
||||
println!("Test1");
|
||||
assert!((self.shadow_check_func.unwrap())(
|
||||
((mem as usize) + 0) as *const c_void,
|
||||
(mem as usize) as *const c_void,
|
||||
0xac
|
||||
));
|
||||
println!("Test2");
|
||||
|
Loading…
x
Reference in New Issue
Block a user