DirectStorage: reject file ranges past end before allocation #1417
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1427"
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 ivall/xcl. Originally posted by hajduzsolt on 2026-11-24T15:51:15Z.
A file-source request allocates its staging buffer before discovering that the requested range is past EOF. Check nonempty ranges against the file length first, including offset overflow. Empty reads keep their existing behavior. Part of #1392.
What is in it
crates/xcl/src/hle/dstorage.rs: validate file ranges before allocation and test boundary, overflow and empty-read cases without fixtures.Tested
cargo test -p xcl --lib file_ranges_reject_truncation_and_offset_overflow: 1 passed, 0 failed.cargo test --workspace -- --test-threads=4 --nocapture: 752 passed, 0 failed, 41 ignored. The reported passes include tests that return early.test_title_draws_with_a_root_signature_under_the_debug_layeranduploads_start_from_each_subresources_state(D3D12 debug layer unavailable).Regression run
main: not run
PR: not run
Not tested
AI use
upstream-sync referenced this pull request2026-11-25 06:04:27 +00:00
Pull request closed