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

wasm2c support #2

Open
zyedidia opened this issue Jul 23, 2023 · 2 comments
Open

wasm2c support #2

zyedidia opened this issue Jul 23, 2023 · 2 comments

Comments

@zyedidia
Copy link

Is wasm2c still supported? It looks like this project switched from wasm2c to w2c2 as the default, but there is still some leftover code from wasm2c. I briefly tried to get it working, but it looks like maybe the old code is no longer compatible with the latest version of wasm2c, is that correct?

@vshymanskyy
Copy link
Owner

What is the motivation behind moving back to wasm2c?

@zyedidia
Copy link
Author

The motivation was that wasm2c at least attempts to sandbox WebAssembly code, while w2c2 is not meant for sandboxing. For example, w2c2 does not perform type-safety checks on indirect calls, making it easy to perform a sandbox breakout attack. Since opening this issue though I have made my own adaptation of wasm2native that supports wasm2c, so I no longer consider this an important issue -- feel free to close it.

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

2 participants