Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
s1341 committed Dec 25, 2024
1 parent bcf94f1 commit 48929e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libafl_frida/src/asan/asan_rt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,7 @@ impl AsanRuntime {

let _ = [<$lib_ident:snake:upper _ $name:snake:upper _PTR>].set(unsafe {std::mem::transmute::<*const c_void, extern "C" fn($($param: $param_type),*) -> $return_type>(target_function.0)}).unwrap_or_else(|e| println!("{:?}", e));

#[expect(non_snake_case)]
#[allow(non_snake_case)]
unsafe extern "C" fn [<replacement_ $name>]($($param: $param_type),*) -> $return_type {
let mut invocation = Interceptor::current_invocation();
let this = &mut *(invocation.replacement_data().unwrap().0 as *mut AsanRuntime);
Expand Down

0 comments on commit 48929e4

Please sign in to comment.