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

have some trouble in add env->EnsureLocalCapacity #25

Closed
abandoned-this opened this issue Jan 9, 2020 · 3 comments
Closed

have some trouble in add env->EnsureLocalCapacity #25

abandoned-this opened this issue Jan 9, 2020 · 3 comments

Comments

@abandoned-this
Copy link

maybe added in jni_env.py

but I am not sure, there is a big table under hooker.write_function_table but the index is not the same as JNIEnv's offset. how could I add EnsureLocalCapacity in it ?

@AeonLucid
Copy link
Owner

AeonLucid commented Jan 9, 2020

According to https://docs.oracle.com/javase/7/docs/technotes/guides/jni/spec/functions.html the index of EnsureLocalCapacity is 26, which is what I have.

Just add your code in here.

raise NotImplementedError()

@0xc1f
Copy link

0xc1f commented Jan 11, 2020

Most of the time would be enough just to return 0.

@abandoned-this
Copy link
Author

thanks for all

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

3 participants