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

Fix Wasm GC validation/generation of field types' mutability and subtyping #1934

Conversation

fitzgen
Copy link
Member

@fitzgen fitzgen commented Dec 3, 2024

No description provided.

We previously incorrectly treated the following invalid cases as valid:

1. mismatched mutable and immutable fields (mutability must match exactly)
2. mutable references to subtypes (mutable reference fields must be invariant)
Ensure that the mutability always matches and that mutable fields are invariant
with respect to the field's storage type.
@fitzgen fitzgen requested a review from alexcrichton December 3, 2024 22:16
@alexcrichton alexcrichton added this pull request to the merge queue Dec 3, 2024
Merged via the queue into bytecodealliance:main with commit 8b8809d Dec 3, 2024
30 checks passed
@fitzgen fitzgen deleted the wasm-gc-validation-of-field-types-and-mutability branch December 3, 2024 22:33
fitzgen added a commit to fitzgen/wasmtime that referenced this pull request Dec 3, 2024
github-merge-queue bot pushed a commit to bytecodealliance/wasmtime that referenced this pull request Dec 3, 2024
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