Skip to content

Commit

Permalink
Fix Aarch64 compilation errors (#163)
Browse files Browse the repository at this point in the history
  • Loading branch information
zh522130 authored Sep 26, 2024
1 parent 2c0f211 commit 456e68e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frida/src/variant.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ unsafe fn sv_array_to_map(variant: *mut frida_sys::GVariant) -> HashMap<String,
frida_sys::g_variant_iter_init(&mut iter, variant);
let sv = CString::new("{sv}").unwrap();
while frida_sys::g_variant_iter_loop(&mut iter, sv.as_ptr(), &mut key, &mut value) != 0 {
let key = CStr::from_ptr(key).to_string_lossy().to_string();
let key = CStr::from_ptr(key.cast()).to_string_lossy().to_string();
let value = Variant::from_ptr(value);
ret.insert(key, value);
}
Expand All @@ -124,7 +124,7 @@ unsafe fn asv_array_to_maplist(variant: *mut frida_sys::GVariant) -> Vec<HashMap
while frida_sys::g_variant_iter_loop(&mut outer, asv.as_ptr(), &mut inner) != 0 {
let mut map = HashMap::new();
while frida_sys::g_variant_iter_loop(inner, sv.as_ptr(), &mut key, &mut value) != 0 {
let key = CStr::from_ptr(key).to_string_lossy().to_string();
let key = CStr::from_ptr(key.cast()).to_string_lossy().to_string();
let value = Variant::from_ptr(value);
map.insert(key, value);
}
Expand Down

0 comments on commit 456e68e

Please sign in to comment.