wasm-micro-runtime/core
YAMAMOTO Takashi 562a5dd1b6
Fix data/elem drop (#2747)
Currently, `data.drop` instruction is implemented by directly modifying the
underlying module. It breaks use cases where you have multiple instances
sharing a single loaded module. `elem.drop` has the same problem too.

This PR  fixes the issue by keeping track of which data/elem segments have
been dropped by using bitmaps for each module instances separately, and
add a sample to demonstrate the issue and make the CI run it.

Also add a missing check of dropped elements to the fast-jit `table.init`.

Fixes: https://github.com/bytecodealliance/wasm-micro-runtime/issues/2735
Fixes: https://github.com/bytecodealliance/wasm-micro-runtime/issues/2772
2023-11-18 08:50:16 +08:00
..
app-framework Readme refactoring (#2038) 2023-03-19 08:05:57 +08:00
app-mgr Extend os_mmap to support map file from fd (#2763) 2023-11-16 08:28:54 +08:00
deps wasi-nn: Simplify cmake and headers' location (#2308) 2023-06-26 09:29:05 +08:00
iwasm Fix data/elem drop (#2747) 2023-11-18 08:50:16 +08:00
shared Fix data/elem drop (#2747) 2023-11-18 08:50:16 +08:00
config.h Add compilation flag to enable/disable heap corruption check (#2766) 2023-11-15 17:20:50 +08:00
version.h Update version number and release notes (#2378) 2023-08-22 08:55:36 +08:00