mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-28 09:21:55 +01:00
wasmi 2.0.0 miscompiles a multi-value br_table whose targets take the same values when another operand sits under those values: the targets read their values from slots the branch never wrote (https://github.com/wasmi-labs/wasmi/pull/2106, fixed in 2.0.2). A plug-in that branched that way got wrong results. 2.0.1 to 2.0.3 also fix other miscompilations, a use-after-free on resuming a call on another store, and memory.grow past a declared maximum bypassing the resource limiter (https://github.com/wasmi-labs/wasmi/blob/main/CHANGELOG.md). Only Cargo.lock changes: the workspace requirement "2.0.0" allows 2.0.3, and wasmi 2.0.3 still uses wasmparser 0.228. The new abi test runs such a branch table for each of its targets; it fails on 2.0.0 with the plug-in's unreachable trap.