Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UINT32_MAX as various index values #1807

Open
SoniEx2 opened this issue Sep 20, 2024 · 1 comment
Open

UINT32_MAX as various index values #1807

SoniEx2 opened this issue Sep 20, 2024 · 1 comment

Comments

@SoniEx2
Copy link
Contributor

SoniEx2 commented Sep 20, 2024

certain wasm runtimes creatively misuse UINT32_MAX to represent alternatives, for example in exception handling implementations to differentiate catch from catch_all.

it'd perhaps be a good idea to make sure such modules are treated as invalid instead.

@SoniEx2 SoniEx2 changed the title UINT32_MAX as various index types UINT32_MAX as various index values Sep 20, 2024
@rossberg
Copy link
Member

Hm, not sure how we can write tests for that without defining 4 billion tags in a single module. We would clearly run into implementation limits much earlier. And if an implementation has such limits and checks them correctly, then there actually isn't anything wrong with it using out-of-range sentinel values for something else internally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants