bary_fallback_gs: reject negative or bool bary_location #478

Manually merged
github merged 1 commit from gh-pr/478/head into gh-pr/478/base 2026-11-26 09:02:55 +00:00
Owner

@⁠kotekompotek on GitHub · 2026-11-24 06:06 UTC · original
kotekompotek:work/bary-fallback-gs-validate-bary-loc → main · +7 −0 · 2 files · 1 commits · merged 2026-11-24 06:59 UTC

Validates that bary_location in gs_spvasm() is a non-negative int (rejecting bool and negative values). Verified with pytest: 28 passed, 1 skipped.

**@⁠kotekompotek** on GitHub · 2026-11-24 06:06 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/478) `kotekompotek:work/bary-fallback-gs-validate-bary-loc` → `main` · +7 −0 · 2 files · 1 commits · merged 2026-11-24 06:59 UTC Validates that bary_location in gs_spvasm() is a non-negative int (rejecting bool and negative values). Verified with pytest: 28 passed, 1 skipped.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:02:53 +00:00
github manually merged commit 10417ec0f5 into gh-pr/478/base 2026-11-26 09:02:55 +00:00
Author
Owner

@⁠QemmHD on GitHub · 2026-11-24 06:59 UTC · original

Merging. Why merged: a bool or negative bary_location is refused before any SPIR-V is generated.
Why it's good: security-reviewed; tested on Windows 11 merged onto main c023a36: 28 -> 29 tests OK (the new test fails on main); the only caller passes a JSON int.

AI-assisted (Claude Code, Claude Opus 5.5).

**@⁠QemmHD** on GitHub · 2026-11-24 06:59 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/478#issuecomment-7124493526) Merging. Why merged: a bool or negative bary_location is refused before any SPIR-V is generated. Why it's good: security-reviewed; tested on Windows 11 merged onto main c023a36: 28 -> 29 tests OK (the new test fails on main); the only caller passes a JSON int. AI-assisted (Claude Code, Claude Opus 5.5).
This discussion has been locked. Commenting is limited to contributors.
No description provided.