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

hook_Objc_msgSend拦截问题 #18

Open
kesiking opened this issue Apr 16, 2019 · 0 comments
Open

hook_Objc_msgSend拦截问题 #18

kesiking opened this issue Apr 16, 2019 · 0 comments

Comments

@kesiking
Copy link

您好,对于hook_Objc_msgSend我有三个问题需要咨询一下:
1、在save()以及load()的汇编方法中,目前对于lr的存储是通过push_call_record及pop_call_record处理的。为何使用以下的汇编把lr及fp入栈,在hook_Objc_msgSend调用结束时再出栈,会出现crash。请问您对此是否有什么心得?
stp fp, lr, [sp, #-16]!
ldp fp, lr, [sp], #16

2、如果我需要针对部分方法不做拦截,是否有什么办法可以处理?目前发现hook_Objc_msgSend与google的GRPC库(GRPCWrappedCall的startBatchWithOperations:(NSArray *)operations errorHandler:(void (^)(void))errorHandler方法)有冲突,会出现crash。

3、对于模拟器您是否有试过hook_Objc_msgSend做拦截处理?

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

1 participant