diff options
| author | mariuslozo-boop <254631011+mariuslozo-boop@users.noreply.github.com> | 2026-11-23 06:37:39 +0100 |
|---|---|---|
| committer | mariuslozo-boop <254631011+mariuslozo-boop@users.noreply.github.com> | 2026-11-23 06:40:52 +0100 |
| commit | ac1843da2ed7fd260bd72e231244a07ce486013e (patch) | |
| tree | f81533a8d643976a13b0133fc41079b7a0ca256e /runtime/src/pe_loader.cpp | |
| parent | d9a52b5520b2fe7f7b748249d6799ea93e31448d (diff) | |
DirectStorage: refuse unpaged buffers over 32 MiB, count stats at submit, /EHa under clang-cl
Review fixes for #4348 (Flyander, AirKyzzZ):
- DSTORAGE_REQUEST allows a buffer over 32 MiB only with 64 KiB or 2 MiB
pages, which are not implemented yet, so such a request now fails with
E_DSTORAGE_REQUEST_TOO_LARGE before any memory is touched.
- TotalRequestCount and the byte totals grow when a request is submitted,
not when it is enqueued, and PendingRequestCount counts the request the
worker is processing (DSTORAGE_PRIORITY_STATS).
- dstorage.cpp is built with /EHa under clang-cl, so guarded_move's __try
catches an access violation in a title's buffer there too.
Tests: an over-limit and an at-limit 32 MiB copy, and stats checked
before Submit and while a copy is held on a guard page. The three new
failing checks fail with the previous shim.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/src/pe_loader.cpp')
0 files changed, 0 insertions, 0 deletions