Repository navigation
Fix expression depth limits, WASI access checks, and validation diagnostics - #838
Merged
LunaStev merged 9 commits intoOct 2, 2026
Merged
Conversation
…ssing Limit expressions to 128 levels across parsing, generated AST validation, HIR lowering, and AST output. Preserve source-located diagnostics and reduce recursive frame sizes without changing stack limits. Fixes wavefnd#818 Signed-off-by: LunaStev <[email protected]>
Preserve WASI errno, reject unsupported modes and file types, and verify requested read/write rights through open and close. Exercise host failures and unchanged file contents at O0 and O2. Fixes wavefnd#756 Signed-off-by: LunaStev <[email protected]>
Identify missing imports before instantiation and preserve human and JSON command-error formats across wasm32, wasm64, and WASI execution. Fixes wavefnd#453 Signed-off-by: LunaStev <[email protected]>
Fixes wavefnd#712 Signed-off-by: LunaStev <[email protected]>
Fixes wavefnd#813 Signed-off-by: LunaStev <[email protected]>
Fold unary prefixes iteratively and separate recursive operand evaluation from numeric conversion, signature resolution, and ABI transport temporaries. Run the driver boundary regression with a 1 MiB Linux child stack so debug builds exercise the Windows constraint. Preserve the 128-level limit and existing operation semantics. Signed-off-by: LunaStev <[email protected]>
Return guest proc_exit to the host and explicitly exit with its status instead of waiting for remaining Node handles. Cover successful and failing proc_exit plus normal _start return with a retained host timer. Signed-off-by: LunaStev <[email protected]>
Signed-off-by: LunaStev <[email protected]>
Signed-off-by: LunaStev <[email protected]>
Open
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Motivation
Deep expressions could overflow the compiler stack, WASI access modes were ignored, missing host imports produced raw runtime errors, expected exits bypassed artifact checks, and equivalent paths could miss their maintainer section. Each fix is recorded in a separate signed-off commit.
Closes #818
Closes #756
Closes #712
Closes #453
Closes #813
Target and compatibility impact
Validation
Local validation on Linux amd64 with Rust 1.89 and LLVM 21:
cargo +1.89 test --jobs 2 --workspace: 368 tests passed. The existing TCP fixture was rerun with local loopback sockets available after a sandbox-restricted failure; the complete run passed.cargo +1.89 clippy --jobs 2 --workspace --all-targets -- -D warnings: passed.cargo +1.89 fmt --all -- --checkandgit diff --check: passed.node tools/test_wasm_host.mjs: six tests passed.examples/wasm_wasi.wavesmoke program also builds and runs successfully.Checklist
Signed-off-byline.std/.