mirror of
https://github.com/mkxp-z/mkxp-z.git
synced 2025-08-23 23:33:45 +02:00
![]() In release 1.0 of the WebAssembly Specification, it says that all the bytes in WebAssembly memory need to be initialized to 0 on creation of the memory, and when memory is grown, the new bytes also need to be initialized to 0. It seems this zeroing behaviour is indeed required for the sandbox to operate correctly. Not zeroing leads to undefined behaviour. This manifested as a crash that occurred when restarting the libretro core, but for some reason, only on Emscripten. Not sure why this didn't happen on other platforms. Even sanitizers weren't able to detect the bug! (cherry picked from commit edf061e323b8f0ab0c6a72c76ae7ccc07a1649c0) |
||
---|---|---|
.. | ||
audio-binding.h | ||
binding-base.cpp | ||
binding-base.h | ||
binding-sandbox.h | ||
binding-util.cpp | ||
binding-util.h | ||
bitmap-binding.h | ||
core.h | ||
etc-binding.h | ||
font-binding.h | ||
graphics-binding.h | ||
input-binding.h | ||
plane-binding.h | ||
sandbox.cpp | ||
sandbox.h | ||
sprite-binding.h | ||
table-binding.h | ||
tilemap-binding.h | ||
types.h | ||
viewport-binding.h | ||
wasi.cpp | ||
wasi.h | ||
wasm-rt.cpp | ||
wasm-rt.h | ||
window-binding.h |