mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-04-27 00:36:00 +03:00
[PR #717] [MERGED] video_core: Add bounds checking for subspan use in liverpool functions #1732
Labels
No labels
Bloodborne
bug
contributor wanted
documentation
enhancement
frontend
good first issue
help wanted
linux
pull-request
question
release
verification progress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/shadPS4#1732
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
📋 Pull Request Information
Original PR: https://github.com/shadps4-emu/shadPS4/pull/717
Author: @baggins183
Created: 9/1/2024
Status: ✅ Merged
Merged: 9/3/2024
Merged by: @raphaelthegreat
Base:
main← Head:pt-fix-subspan📝 Commits (1)
6e56a22video_core: Add bounds checking for subspan use in liverpool functions📊 Changes
1 file changed (+18 additions, -4 deletions)
View changed files
📝
src/video_core/amdgpu/liverpool.cpp(+18 -4)📄 Description
I have seen Nop packets that exceed the remaining submission length for the command list. When this happens, for me subspan underflows and returns a span with a very high, garbage size, which causes the ProcessCompute function to keep looping.
This commit adds an error message when this happens, and returns an empty span so at least the loop bails out.
Also adds stub cases for type 0 and 1 packets in ProcessCompute
Happens in CUSA01127 (PT)
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.