Guard against null output buffer in xg::tiling #461
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/461"
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 TaynanGT/Vice-Tay. Originally posted by ahmetbagci8 on 2026-11-29T20:51:23Z.
Problem
In crates/victory-hle/src/modules/xg.rs, iling() writes SubresourceTiling entries through out.add(i as usize).write(entry) whenever count is non-null and *count > 0, without checking whether out is null. Passing a null out buffer to query the subresource tiling count immediately dereferences null.
Fix
Skip writing entries when out.is_null() and report the available subresource tiling count in *n instead. Extended layout_and_copies_through_the_object to verify querying with out = null alongside the existing non-null check.
Verification
Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-30T17:05:13Z.
mainhas moved to a new line of the code and everything is now named Vice-Tay, so this PR no longer applies as it is (details in #468). If you'd like this change in, please rebuild it on the currentmainand open a new PR; I'll review it there.Pull request closed