Hacker News new | ask | show | jobs
by fwsgonzo 960 days ago
This is wrong. WebAssembly doesn't care where you write inside the arena.

See: https://gist.github.com/fwsGonzo/8d8d0d27847c2d5804bc2d8af2b...

.. but it is safe to write anywhere in the arena!

1 comments

Appreciate the clarification. You're right that WebAssembly doesn't enforce bounds checking within its linear memory, allowing for out-of-bounds writes within the allocated space. While it does enhance security at the host boundary, it doesn't absolve the need for careful memory management within the WebAssembly module itself