Re:Ask HN: Does Compiling to WebAssembly Prevent Issues with...
by fwsgonzo on Friday November 03, 2023 @10:41AM
(#38129523)
Are you sure the run-time will bounds-check buffers like that? I thought WASM sandboxes were just one big bump-allocator arena.
[ Parent
| on HN ]
Re:Ask HN: Does Compiling to WebAssembly Prevent Issues with...
by averageValentin on Friday November 03, 2023 @07:04PM
(#38136222)
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