Skip to content

Adjust validation of memory in canonopts#633

Merged
lukewagner merged 1 commit intoWebAssembly:mainfrom
alexcrichton:relax-canonopt-memory-validation
Apr 8, 2026
Merged

Adjust validation of memory in canonopts#633
lukewagner merged 1 commit intoWebAssembly:mainfrom
alexcrichton:relax-canonopt-memory-validation

Conversation

@alexcrichton
Copy link
Copy Markdown
Collaborator

Change the subtyping check to check for (memory 0) instead of (memory 1) to allow memories that start empty but are allowed to grow. This is a bit more relaxed from the previous predicate while still restricting it to non-shared, 32-bit, 64k page-size memories.

Change the subtyping check to check for `(memory 0)` instead of
`(memory 1)` to allow memories that start empty but are allowed to grow.
This is a bit more relaxed from the previous predicate while still
restricting it to non-shared, 32-bit, 64k page-size memories.
Copy link
Copy Markdown
Member

@lukewagner lukewagner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sgtm

@lukewagner lukewagner merged commit 31719d1 into WebAssembly:main Apr 8, 2026
1 check passed
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

Successfully merging this pull request may close these issues.

2 participants