fix(hle): saturate storage quota conversion #337
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!337
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/337/head"
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?
@CesarLopesO on GitHub · 2026-11-24 02:23 UTC · original
CesarLopesO:fix/runtime-storage-quota-overflow→main· +31 −5 · 1 files · 4 commits · closed without mergingSummary
SizeMBvalues from silently overflowing during conversion.Validation
Test limitation
cargo test --locked -p victory-hle runtime::testscould not reach the tests on the current Linuxmainbranch because compilation fails first incrates/victory-gpu/src/resource.rswithE0425: cannot find function host_resource.This is the existing Linux build issue tracked in #90; related Linux compatibility changes are proposed separately in #235. This PR only changes
crates/victory-hle/src/runtime.rs.@jeremygold02 on GitHub · 2026-11-24 04:21 UTC · original
Tested PR #337 at head
6922a81d615f4e7a55b6f488a0dc704351568a13(state at test time: OPEN). Pre-comment refresh: state OPEN, head unchanged at6922a81d615f4e7a55b6f488a0dc704351568a13.cargo test --locked -p victory-hle storage_quota_saturates_when_megabytes_exceed_u64_bytes— FAILED (exit 101); detail: error[E0689]: can't call methodsaturating_mulon ambiguous numeric type{integer}| error: could not compilevictory-hle(lib) due to 1 previous error.Behavior covered: Checks storage quota conversion saturates when megabytes exceed the u64 byte range.
Code: crates/victory-hle/src/runtime.rs
@CesarLopesO on GitHub · 2026-11-24 10:57 UTC · original
Updated the PR with the explicit
u64parsing fix and the rustfmt adjustments.Additional validation on Debian 13:
rustfmt --edition 2024 --check crates/victory-hle/src/runtime.rs— passed.git diff --check— passed.cargo check --tests— passed.cargo test --no-runforvictory-hleon the Windows GNU target — passed; test binaries were compiled successfully, but not executed.Native Linux test execution remains blocked by the unrelated
host_resourceE0425 error invictory-gpu(#90).Could you please review the updated commit?
@Marvisak on GitHub · 2026-11-25 00:02 UTC · original
Automated triage for the maintainers. Closing because it does not change behaviour the project needs (formatting, guards for cases that cannot occur, or notes and translations that cannot be kept current).
Saturates the SizeMB to bytes conversion, which only matters for a manifest quota above 2^44 MB; cannot occur. The rest is reformatting, and the test was never run (cross-compiled only).
If this is mistaken, reply here with what was missed (or push a change and say so) and it will be looked at again. Thank you for the contribution.
Pull request closed