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

Fix indirect call to dynamic imported function #4929

Merged
merged 4 commits into from
Jul 16, 2024

Conversation

Arshia001
Copy link
Member

Fixes #4565.

The solution is to update the func_ptr of the anyfunc with the generated trampoline address during the resolve step. I'm not sure this is the best place for this code though; careful review is required.

This commit changes the code in the existing imports test to make an indirect call, which will test the mentioned scenario.
@Arshia001 Arshia001 requested review from theduke and xdoardo July 15, 2024 13:16
@Arshia001 Arshia001 requested a review from syrusakbary as a code owner July 15, 2024 13:16
@Arshia001 Arshia001 enabled auto-merge July 16, 2024 08:53
@Arshia001 Arshia001 merged commit 224c40b into main Jul 16, 2024
62 checks passed
@Arshia001 Arshia001 deleted the fix/indirect-call-to-dynamic-imported-function branch July 16, 2024 09:32
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

Successfully merging this pull request may close these issues.

Wasmer can't run Doom
4 participants