Which is my whole point, WebAssembly does not protect memory corruption inside of the module code, which allows for security exploits anyway.
On my sample code if I expose func() to the host, and it gets called with 200 as parameter for a buffer size of 100 bytes, no trap will ocurr.
On a real use case that call might induce an internal memory corruption that will, for example, change the behavior of other functions exposed to the host.
If you wish I can provide an example how to do that, which you can try out in your favorite spec compliant Web Assembly implementation.