wasm2native icon indicating copy to clipboard operation
wasm2native copied to clipboard

wasm2c support

Open zyedidia opened this issue 2 years ago • 2 comments

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?

zyedidia avatar Jul 23 '23 04:07 zyedidia

What is the motivation behind moving back to wasm2c?

vshymanskyy avatar Dec 07 '23 10:12 vshymanskyy

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.

zyedidia avatar Dec 10 '23 09:12 zyedidia