fix(gui): fix use-after-free crashes on session teardown, controller … #803
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
stale
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gh-streetpea/chiaki-ng!803
Loading…
Reference in a new issue
No description provided.
Delete branch "Corzcode/pr/upstream/uaf"
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?
…disconnect, and exit
Route every StreamSession teardown through teardownSession(): disconnect signals, drain in-flight frame-thread handlers via a BlockingQueuedConnection barrier, then delete deferred. Fixes a frame-thread UAF on session->GetFfmpegDecoder() during teardown.
UpdateGamepads: capture controller id instead of a raw Controller* in the delayed 1s lambda, re-lookup by id at run time. Fixes a UAF on quick controller disconnect.
Destroy libplacebo user shader hooks before pl_vulkan/pl_opengl teardown, since hook descriptors are freed via the GPU.
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.