Handle upload allocation failures and bound ray-tracing scans #625
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/625"
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 trustno1-coder/VIctory-NVIDIA. Originally posted by cnuonr on 2026-11-28T01:57:05Z.
Problem
A failed commit of an early upload reservation removes its address from the pool even though Windows still holds the reservation. Subsequent uploads can no longer retry it. An unrepresentable block-rounded length also panics in the allocator. The process-heap fallback uses an infallible allocation even though callers already handle a missing upload.
The ray-tracing address scan also treats adjacent occupied blocks as a single upload. It reads into the next allocation and into padding beyond the requested byte count.
Changes
Verification
cargo test --locked -p victory-gpu --lib upload::testspassed all 9 tests on Windows. A simulated commit failure, the two rounding-overflow cases, and both scan-boundary cases fail on the original implementation. The heap fallback test checks zero initialization and rejection of an unrepresentable capacity. The tests use generated data.