Skip to content

Conversation

@joe-p
Copy link
Contributor

@joe-p joe-p commented Oct 27, 2025

It was non-obvious that * means the runtime does the app to native conversion automatically. With the current docstring, one might assume that the runtime only does boundary checks and not address conversion. Under this assumption, passing the already-native address to wasm_runtime_addr_app_to_native will lead to unexpected behavior

It was non-obvious that `*` means the runtime does the app to native
conversion automatically. With the current docstring, one might assume
that the runtime only does boundary checks and not address conversion.
Under this assumption, passing the already-native address to
`wasm_runtime_addr_app_to_native` will lead to unexpected behavior
@lum1n0us
Copy link
Collaborator

LGTM. It is better to mention that both $ and * in the signature will trigger address validation and address conversion.

@lum1n0us lum1n0us added the enhancement Check if this issue/PR enhances a feature; scripts will use this info. label Oct 28, 2025
@joe-p
Copy link
Contributor Author

joe-p commented Oct 28, 2025

Ah good point, added in b683a01

@lum1n0us lum1n0us merged commit 238f45d into bytecodealliance:main Oct 31, 2025
463 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Check if this issue/PR enhances a feature; scripts will use this info.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants