Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to get double value from args? #266

Closed
hellofrida opened this issue Apr 14, 2017 · 2 comments
Closed

how to get double value from args? #266

hellofrida opened this issue Apr 14, 2017 · 2 comments

Comments

@hellofrida
Copy link

hellofrida commented Apr 14, 2017

objective-c
if args is int , args[2].toInt32() , it works,
but args[2] is double ,it not works,

i try to Memory.readDouble,Memor.readFloat,but fail,value is 0,
how to get double or float?

Frida 9.1.13
iphone4/frida-32

@oleavr
Copy link
Member

oleavr commented Apr 18, 2017

Hi,

When working with floating point arguments, structs passed by value, etc. you have to use Interceptor.replace() and NativeCallback to have such arguments properly marshalled for you. There is currently no way to achieve this with a listener (Interceptor.attach()), as it does not know anything about the function's actual signature (by design).

Cheers!

@hellofrida
Copy link
Author

thanks alot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants