Skip to content

v2.0.5 - 2026/12/02

Latest

Choose a tag to compare

@github-actions github-actions released this 02 Dec 00:34
v2.0.5
b3e24c1

Fixed

  • Evaluating or dropping deeply nested constant expressions no longer overflows the native stack. #2133
    • This is a side effect of the ConstExpr redesign below.
    • Previously, deep extended-const expressions aborted the process, even when only dropping their Module.
    • Thanks to Dickson Wu (SEAL & CertiK) for reporting the issue and proposing a fix!
  • Translating global.get of an immutable global no longer re-evaluates its initializer. #2134
    • Previously, translation time grew with the initializer's length times the number of global.gets reading it.
    • Only single-operator initializers are inlined now. Toolchains already fold constant initializers.
  • Func::new and Linker::func_new now panic for function types with v128 without the simd crate feature. #2137
    • Previously, calling such a host function via Func::call allowed to write past the end of the value stack in some cases.
    • Thanks to tcp-raw for reporting the issue!
  • Formatting an Engine or Store via Debug no longer races with concurrent lazy compilation. #2138
    • Previously, this caused a data race and use-after-free on a function's uncompiled data.
    • Thanks to tcp-raw for reporting the issue!

Internal

  • Redesigned ConstExpr as a flat postfix list of operators evaluated by the new ConstExprEvaluator. #2133
    • Single-operator expressions, the common case, require no heap allocation.
    • Evaluation is untyped and reuses its stack across instantiation.