bytecodealliance / bytecodealliance/wasm-tools

Make sure (unused) sections of bits in RefType are zeroed out

Open
#1,037 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
1.8k
Forks
351
Avg merge
16h 57m
Merged PRs (30d)
38

Description

RefType is a a struct that plays a role of a "bit-packed enum". When a RefType value represents a reference to a top- or bottom-level heap type (introduced by the GC spec, e.g. `any`, `eq`, `i31`, `none`, etc.), it can contain a section of "(unused)" bits.

When creating an instance of RefType (from raw bytes), we need to make sure, that the unused section is zeroed out.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.