frida / frida-rust

Frida Rust bindings
Other
176 stars 46 forks source link

frida-gum: Cannot find function `g_object_unref` in crate `gum_sys` on aarch64-linux-android #124

Open SajjadPourali opened 8 months ago

SajjadPourali commented 8 months ago

g_object_unref is not available for certain architectures.

https://github.com/frida/frida-rust/blob/6383f77a8af707df6b310c673c824fb6617b9b8b/frida-gum-sys/src/lib.rs#L19-L20

While in the following drops, it calls without performing the target check.

https://github.com/frida/frida-rust/blob/6383f77a8af707df6b310c673c824fb6617b9b8b/frida-gum/src/module_map.rs#L246-L251

https://github.com/frida/frida-rust/blob/6383f77a8af707df6b310c673c824fb6617b9b8b/frida-gum/src/stalker/transformer.rs#L198-L203

https://github.com/frida/frida-rust/blob/6383f77a8af707df6b310c673c824fb6617b9b8b/frida-gum/src/stalker.rs#L308-L313

s1341 commented 8 months ago

Thanks for your report. Care to take a stab at a PR to fix?