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