bary_fallback_gs: reject negative or bool bary_location #478

Merged
kotekompotek merged 1 commit from upstream-pr/478 into main 2026-11-24 06:59:13 +00:00
kotekompotek commented 2026-11-24 06:06:54 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by kotekompotek on 2026-11-24T06:06:54Z.


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

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5467051783 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/478). Originally posted by [kotekompotek](https://github.com/kotekompotek) on 2026-11-24T06:06:54Z. --- Validates that bary_location in gs_spvasm() is a non-negative int (rejecting bool and negative values). Verified with pytest: 28 passed, 1 skipped.
QemmHD commented 2026-11-24 06:59:10 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by QemmHD on 2026-11-24T06:59:10Z.


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).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7124493526 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/478#issuecomment-7124493526). Originally posted by [QemmHD](https://github.com/QemmHD) on 2026-11-24T06:59:10Z. --- 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).
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
ProjectLeonida/mandy!478
No description provided.