Skip to content

Fix polygon OOB reads and config macro - #140

Merged
RobLoach merged 1 commit into
masterfrom
fix/131-polygon-rendering-out-of-bounds
Jul 28, 2026
Merged

Fix polygon OOB reads and config macro#140
RobLoach merged 1 commit into
masterfrom
fix/131-polygon-rendering-out-of-bounds

Conversation

@RobLoach

Copy link
Copy Markdown
Owner

Guards the scanline node-pairing loop against odd node counts, skips the polygon closing edge when point_count < 2, and moves the RAYLIB_NUKLEAR_POLYGON_FILL_MAX_POINTS default up with the other config macros instead of undef-ing it. Adds degenerate-polygon test coverage. Fixes #131

@RobLoach RobLoach self-assigned this Jul 28, 2026
@RobLoach
RobLoach merged commit 2b1af16 into master Jul 28, 2026
1 check passed
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.

Polygon rendering: out-of-bounds reads and clobbered config macro

1 participant