gpu: handle zero-length ranges safely in inplace, texback, port, and descriptor #36
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/36"
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?
Imported from edsuuu/VI-BR-PORT. Originally posted by ahmetbagci8 on 2026-11-29T12:38:11Z.
Problem
Four half-open range helpers in ictory-gpu did not guard against len == 0:
ange start is greater than range end) whenever t < usize::MAX, and irst removes a live view containing t.
Fix
Return early on len == 0 in all four functions (and use saturating_add in in_shader_heap), with unit tests covering each case.
Verification
Imported from edsuuu/VI-BR-PORT. Originally posted by edsuuu on 2026-11-29T13:19:36Z.
Review: APPROVED
Thanks, clean and well tested. It passed our full local CI together with the other fixes of this batch. Merged into
dev, where everything is tested in the game first; it reachesmainwith the next release.