Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

semaphore: Use handles to properly handle semaphore double-delete. #1728

Merged
merged 1 commit into from
Dec 10, 2024

Conversation

squidbus
Copy link
Contributor

Switch to storing semaphores in a SlotVector and using handles instead of pointers, so that we can properly determine if a semaphore has been deleted or not and prevent double-deletes or use-after-frees.

@raphaelthegreat raphaelthegreat merged commit 41fd1c8 into shadps4-emu:main Dec 10, 2024
10 checks passed
MajorP93 added a commit to MajorP93/shadPS4 that referenced this pull request Dec 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants