You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
wasm2wat drops the memory index on SIMD load splat/zero instructions #2879
wasm2wat omits a nonzero memory index on v128.load{8,16,32,64}_splat and v128.load{32,64}_zero, so the round-tripped module loads from memory 0. This is a semantics correctness issue, not a security bug or sandbox break.
--fold-exprs gives the same result, and putting the 1 back restores a byte-identical binary. The splat/zero handlers in wat-writer.cc use WriteLoadStoreExpr, which never writes the memory index. The lane loads were fixed in #1962.
Tested at e5cc0c4 (1.0.42-13) on Linux x86_64. Happy to send a fix with tests.
Activity