[gc_fuzz]: Extend everything we have done so far to array types#13847
Open
khagankhan wants to merge 2 commits into
Open
[gc_fuzz]: Extend everything we have done so far to array types#13847khagankhan wants to merge 2 commits into
khagankhan wants to merge 2 commits into
Conversation
added 2 commits
July 8, 2026 21:36
Subscribe to Label Actioncc @fitzgen DetailsThis issue or pull request has been labeled: "fuzzing"Thus the following users have been cc'd because of the following labels:
To subscribe or unsubscribe from this label, edit the |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
types.rs:CompositeType::Arraywith a reusedStructFieldelement. Full array-to-array subtyping (element covariance/invariance, forced element-compatibility in fixup). Cross-kind supertype edges (struct<->array) are cleared.StackType::Arraywired into operand satisfaction,eqrefupcast, and cast repair.ops.rs: a full mirror of the struct op family for arrays, plus array-specificArrayNew(fixed-lengtharray.new_default),ArrayGet/ArraySet, andArrayLen. Accesses are null-guarded and useindex % (array_length + 1)so out-of-bounds traps are exercised but rare. A same-kind index remap keeps struct ops off array types (and vice versa) now that both share one type-index space.mutator.rs: array generation, element mutation, and generic rec-group duplication.oracles.rs:take_array+ typedtake_array_Nimports, andTrap::ArrayOutOfBoundsadded to the accepted-trap allowlist.limits.rs: a fuzzablearray_lengthknob (1..=16, default 5).config.rs:Config::to_store()could panic inEngine::new()for pooling + GC configs. The GC-heap backing memory rounds its minimum size up to a 64 KiB wasm page, but the harness clampedgc_heap_initial_sizetomax_memory_sizein raw bytes — so a non-page-alignedmax_memory_sizelet the rounded-up minimum overshoot the pool's per-memory limit, andEngine::new(correctly) rejected the config, whichto_store().unwrap()turned into a crash. Fixed by clamping the initial size tomax_memory_sizerounded down to a page.+cc @fitzgen @eeide