4 ms·
...not in WASM (running in browsers at least, other WASM runtimes might implement the WASM heap differently and allow write-protected pages). PS: FWIW, wasmtim
by flohofwoe 3y ago
...not in WASM (running in browsers at least, other WASM runtimes might implement the WASM heap differently and allow write-protected pages).
PS: FWIW, wasmtime happily runs the code:
wasmtime bla.wasm
dbc
- Smaug123 3y ago(Of course, since this is undefined behaviour - https://www.open-std.org/jtc1/sc22/wg14/www/docs/n1570.pdf https://www.open-std.org/jtc1/sc22/wg14/www/docs/n1570.pdf , section 6.4.5 para 7 - literally any behaviour from any implementation is perfectly compliant.)