Skip to content

是否需要在JNI_OnUnload中将stub等全局变量设为NULL? #44

Answered by caikelun
zhbzhbzhbz asked this question in Q&A
Discussion options

You must be logged in to vote

不需要。在unhook后可以将stub设置为NULL,这是为了防止之后误用。你如果hook后确认不需要unhook了,那stub值也不用保留。
这和 JNI_OnUnload 完全无关。

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@zhbzhbzhbz
Comment options

Answer selected by zhbzhbzhbz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants