[Minor Feature] Extend fuzz coverage to remaining public API surface #312
Labels
No labels
Alpha Release Requirement
Bugfix
Demo Target
Documentation
Major Feature
Minor Feature
priority:tier1-active
priority:tier2-foundation
priority:tier3-future
priority:tier4-deferred
Refactoring & Cleanup
system:animation
system:documentation
system:grid
system:input
system:performance
system:procgen
system:python-binding
system:rendering
system:ui-hierarchy
Tiny Feature
workflow:blocked
workflow:needs-benchmark
workflow:needs-documentation
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
john/McRogueFace#312
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
The libFuzzer+ASan harness shipped in #283 covers the core mcrfpy surface: Grid, Entity, EntityCollection, Frame, Caption, Sprite, TileLayer, ColorLayer, Color, Vector, Scene, Timer, animations, HeightMap, DiscreteMap, NoiseSource, BSP, compute_fov/is_in_fov, DijkstraMap, grid.step, entity behavior.
Several high-value areas are still uncovered. Based on a comparison to
docs/api-audit-2026-04.md(93 public API items), the following gaps are in priority order of likely fault density:Gaps to cover
Tier A (highest expected yield)
TileSetFile,TileMapFile,WangSet,LdtkProject,AutoRuleSet. External file parsers are historically the highest-yield fuzz target. Corpus: the existing fixture .tmx / .ldtk files plus random mutations.Tier B
SoundBuffer.pitch_shift,echo,reverb,distortion,bit_crush,concat,mix,slice,low_pass,high_pass,gain,normalize,reverse,sfxr_mutate. 14 methods of signal-processing math, none exercised. Likely UB in edge cases (empty buffers, extreme parameters, sample-rate mismatches).Texture.from_bytes,composite,hsl_shift. Raw byte ingestion and pixel transforms.Tier C (completeness)
at,entities_in_radius,center_camera,hovered_cell,apply_threshold,apply_ranges,apply_gradient(also on ColorLayer/TileLayer).ColorLayer.apply_perspective/update_perspective/clear_perspective/draw_fov.Scene.childrenlevel — insert/pop/index/count/find not exercised outside the grid_entity scope.walk,peek,len, iteration.__getattr__/__setattr__for named-layer access.find,findAll,bresenham,lock, benchmark triplet.Suggested implementation
Add one new fuzz target per Tier A / B area (so 4-5 new targets). Each follows the existing
tests/fuzz/fuzz_<name>.pypattern with a matching entry inFUZZ_TARGETSin the Makefile. Tier C gaps can be folded into existing targets (e.g., extendfuzz_property_typesto include Line / Circle / Arc).Not in scope
3D / Experimental types (Viewport3D, Entity3D, VoxelGrid, etc.) — explicitly exempt from the 1.0 freeze per
ROADMAP.md. Fuzz when/if they mature.Related
tests/fuzz/README.md: how to add a targetdocs/api-audit-2026-04.md: authoritative API surface catalog