shader: do not dereference an unresolved descriptor address #459
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
GPU
GUI
help wanted
question
Shaders
Video
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/KytyPS5--KytyPS5!459
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/459/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?
@brandostrong on GitHub · 2026-09-02 21:49 UTC · original
brandostrong:fix/srt-unvalidated-descriptor-read→main· +6 −0 · 1 files · 1 commits · closed without mergingProblem.
Evaluator::EvaluateRawReadreads a descriptor dword from guest memory. When no memory reader is installed it falls back to a rawmemcpyfrom an address computed out of guest data, with no check. That path is live in normal draws, so a descriptor chain that does not resolve faults the emulator instead of failing the evaluation.Change. Check readability of the address before the raw read and fail evaluation when it is not readable, matching what the reader-backed path already does.
Effect. No measured change in Astro Bot; this closes a host-crash path on any guest-derived address.
Verification. Suites pass; the unreadable-address case was exercised empirically during the Astro Bot runs.
References
EvaluateRawReadreads from an address derived from guest data without a readability check when no memory reader is installed.@Nmzik on GitHub · 2026-10-21 19:42 UTC · original
Superseded by #473.
Pull request closed