Can a WebAssembly program leak memory?

Viewed 1104
2 Answers

Yes, we are investigating just such a case here!

https://github.com/emscripten-core/emscripten/issues/14459
(Any emscripten / em++ experts are welcome to help ‍♂️)


The leak starts: before


It exhausts available wasmMemory: after


After this point, all tested calls to the WASM module fail but that does not crash the tab in desktop Chrome, other browsers might behave differently. (The leak happens in all tested browsers.)

Related