hle: validate null out pointers before allocating in dstorage and xgamesave #3154
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by RanoGames on 2026-11-29T20:20:34Z.
What 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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.