mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-04-26 08:15:59 +03:00
[PR #1028] [MERGED] Add nullptr check in scePthreadSetprio function #1887
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#1887
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/1028
Author: @tGecko
Created: 9/22/2024
Status: ✅ Merged
Merged: 9/25/2024
Merged by: @georgemoralis
Base:
main← Head:safeguard-set-prio-nullptr📝 Commits (1)
d49b0baAdd nullptr check in scePthreadSetprio function📊 Changes
1 file changed (+4 additions, -0 deletions)
View changed files
📝
src/core/libraries/kernel/thread_management.cpp(+4 -0)📄 Description
Apparently sometimes scePthreadSetprio gets called with 0 as thread. Guard against that.
With this, I can get past first menu and up until intro cutscene in CUSA03365 (Dark Souls III).
Before this, it crashed within a few seconds of starting up.
DS3 tries to set prio to nullptr-threads 7 times
Log with this: now crashes with
vk::Device::waitForFences: ErrorDeviceLostin intro cutsceneshad_log.txt
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.