Skip to content

[CustomDescriptors] Ensure a non-nullable type for ref.cast_desc_eq on null - #8975

Open
kripken wants to merge 2 commits into
WebAssembly:mainfrom
kripken:ref.br_on
Open

[CustomDescriptors] Ensure a non-nullable type for ref.cast_desc_eq on null#8975
kripken wants to merge 2 commits into
WebAssembly:mainfrom
kripken:ref.br_on

Conversation

@kripken

@kripken kripken commented Aug 6, 2026

Copy link
Copy Markdown
Member

If the desc is null, the cast is not even executed, making it unreachable.
We typed it as nullable if the ref was (in the code path type = ref->type;),
but emiting an uninhabitable type is more precise, and also avoids a fuzz
bug (see new test) where refinalize actually un-refined a type: it turned it
from non-nullable to nullable.

@kripken
kripken requested a review from tlively August 6, 2026 18:01
@kripken
kripken requested a review from a team as a code owner August 6, 2026 18:01
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.

1 participant