Skip to content

wasi: accept int32 values for uint32 args#62822

Open
islandryu wants to merge 1 commit intonodejs:mainfrom
islandryu:wasi-uint32-coercion
Open

wasi: accept int32 values for uint32 args#62822
islandryu wants to merge 1 commit intonodejs:mainfrom
islandryu:wasi-uint32-coercion

Conversation

@islandryu
Copy link
Copy Markdown
Member

Fixes: #62671

clock_time_get() receives time_ptr as a Wasm i32, which may appear as Int32 in JS.
This PR accepts it as int32_t, reinterprets it as uint32_t, and adds regression tests.

@nodejs-github-bot
Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/wasi

@nodejs-github-bot nodejs-github-bot added c++ Issues and PRs that require attention from people who are familiar with C++. needs-ci PRs that need a full CI run. wasi Issues and PRs related to the WebAssembly System Interface. labels Apr 19, 2026
@islandryu islandryu force-pushed the wasi-uint32-coercion branch from 8719763 to 9099d80 Compare April 19, 2026 09:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c++ Issues and PRs that require attention from people who are familiar with C++. needs-ci PRs that need a full CI run. wasi Issues and PRs related to the WebAssembly System Interface.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

clock_time_get rejects valid WASI pointer arguments >= 0x80000000(2G)

2 participants