bytecodealliance / bytecodealliance/wasm-tools
Make sure (unused) sections of bits in RefType are zeroed out
Open
- 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
Assessment
This issue has not been assessed yet.