hle: validate null out pointers before allocating in dstorage and xgamesave #3154
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!3154
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3154"
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?
@RanoGames on GitHub · 2026-11-29 20:20 UTC · original
RanoGames:fix/hle-null-out-leaks→main· +63 −0 · 2 files · 1 commits · openWhat it changes
out.is_null()checks returningE_INVALIDARGbefore allocating heap objects, Win32 events, or scheduler lanes indstorage::create_status_array,dstorage::new_queue,xgamesave::create_container, andxgamesave::create_update.null_out_returns_invalidarg_without_leaking) in bothdstorage::testsandxgamesave::tests.How it was tested
cargo test --locked -p victory-hle --lib -- modules::dstorage::tests modules::xgamesave::tests(46 passed, 0 failed, 2 ignored benchmarks).cargo xtask policy --staged(asset policy: 2 files ok).Checked for overlap
trustno1-coder/VIctory-NVIDIAforcreate_status_array,new_queue,create_container,create_update,E_INVALIDARG dstorage, andE_INVALIDARG xgamesave; no existing PR addresses these null-out leaks.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.