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 incorrect range in ininitialize_instance. #2801

Merged

Conversation

peterhuene
Copy link
Member

This commit fixes a bug where the wrong destination range was used when copying
data from the module's memory initialization upon instance initialization.

This affects the on-demand allocator only when using the uffd feature on
Linux and when the Wasm page being initialized is not the last in the module's
initial pages.

Fixes #2784.

This commit fixes a bug where the wrong destination range was used when copying
data from the module's memory initialization upon instance initialization.

This affects the on-demand allocator only when using the `uffd` feature on
Linux and when the Wasm page being initialized is not the last in the module's
initial pages.

Fixes bytecodealliance#2784.
@peterhuene peterhuene merged commit 4d036a4 into bytecodealliance:main Apr 3, 2021
@peterhuene peterhuene deleted the fix-initialize-instance-range branch April 3, 2021 00:30
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.

Panic for on-demand instance allocator with uffd feature enabled
2 participants