5 ms·
The allocator never hands out invalid addresses, but the wasm code can then try to access out of the bounds of the allocated memory (eg huge array index). The
by deredede 3y ago
The allocator never hands out invalid addresses, but the wasm code can then try to access out of the bounds of the allocated memory (eg huge array index).
The wasm runtime and other browser code runs in the same address space but must stay out of reach of the wasm code.