bary_fallback_gs: reject negative or bool bary_location #478

Merged
leonida/mandy
kotekompotek merged 1 commit from work/bary-fallback-gs-validate-bary-loc into main 2026-11-24 06:59:13 +00:00

Pull request successfully merged and closed

kotekompotek commented 2026-11-24 06:06:54 +00:00

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

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

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

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 description provided.