Skip to content

Commit

Permalink
bump frida version to 16.3.3 (#138)
Browse files Browse the repository at this point in the history
* bump frida version to 16.3.3

* lint

* ..

* lint is fun
  • Loading branch information
aviramha authored Jul 7, 2024
1 parent e325343 commit 818a23c
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 7 deletions.
2 changes: 1 addition & 1 deletion FRIDA_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
16.2.5
16.3.3
10 changes: 8 additions & 2 deletions examples/gum/fast_interceptor/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,10 @@ fn replace_normal() {
let test_func_ptr = test_func as *mut c_void;
let test_detour_ptr = test_detour as *mut c_void;
unsafe {
*ORIGINAL_TEST.lock().unwrap().get_mut() = Some(std::mem::transmute(
*ORIGINAL_TEST.lock().unwrap().get_mut() = Some(std::mem::transmute::<
*mut libc::c_void,
extern "C" fn(*const i8) -> u32,
>(
interceptor
.replace(
NativePointer(test_func_ptr),
Expand All @@ -94,7 +97,10 @@ fn replace_fast() {
let test_func_ptr = test_func as *mut c_void;
let test_detour_ptr = test_detour as *mut c_void;
unsafe {
*ORIGINAL_TEST.lock().unwrap().get_mut() = Some(std::mem::transmute(
*ORIGINAL_TEST.lock().unwrap().get_mut() = Some(std::mem::transmute::<
*mut libc::c_void,
extern "C" fn(*const i8) -> u32,
>(
interceptor
.replace_fast(NativePointer(test_func_ptr), NativePointer(test_detour_ptr))
.unwrap()
Expand Down
5 changes: 4 additions & 1 deletion examples/gum/hook_open/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@ fn init() {
let mut interceptor = Interceptor::obtain(&GUM);
let open = Module::find_export_by_name(None, "open").unwrap();
unsafe {
*ORIGINAL_OPEN.lock().unwrap().get_mut() = Some(std::mem::transmute(
*ORIGINAL_OPEN.lock().unwrap().get_mut() = Some(std::mem::transmute::<
*mut libc::c_void,
unsafe extern "C" fn(*const i8, i32) -> i32,
>(
interceptor
.replace(
open,
Expand Down
2 changes: 1 addition & 1 deletion frida-gum-sys/FRIDA_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
16.2.5
16.3.3
2 changes: 1 addition & 1 deletion frida-sys/FRIDA_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
16.2.5
16.3.3
5 changes: 4 additions & 1 deletion frida/src/script.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,10 @@ impl<'a> Script<'a> {
pub fn handle_message<I: ScriptHandler>(&self, handler: &mut I) -> Result<()> {
let message = CString::new("message").map_err(|_| Error::CStringFailed)?;
unsafe {
let callback = Some(std::mem::transmute(call_on_message::<I> as *mut c_void));
let callback = Some(std::mem::transmute::<
*mut std::ffi::c_void,
unsafe extern "C" fn(),
>(call_on_message::<I> as *mut c_void));

frida_sys::g_signal_connect_data(
self.script_ptr as _,
Expand Down

0 comments on commit 818a23c

Please sign in to comment.