Skip to content
New issue

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

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

Already on GitHub? # to your account

Fix Rust binding memory leak #1764

Merged
merged 2 commits into from
Jan 24, 2023
Merged

Conversation

LG3696
Copy link

@LG3696 LG3696 commented Jan 18, 2023

Fix #1619 by using Weak references.
This works without unsafe, so it should not have the soundness issue of #1632

@wtdcode
Copy link
Member

wtdcode commented Jan 21, 2023

LGTM. Waiting for CI.

@wtdcode
Copy link
Member

wtdcode commented Jan 21, 2023

@LG3696
Copy link
Author

LG3696 commented Jan 21, 2023

It looks like insn_in_hook_proxy was missing the u32 return type and up until this change it happened to work by chance. I added the return type, so it should work robustly now.

@wtdcode wtdcode merged commit df2e75b into unicorn-engine:dev Jan 24, 2023
@wtdcode
Copy link
Member

wtdcode commented Jan 24, 2023

Merged and thanks!

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

Successfully merging this pull request may close these issues.

3 participants