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

Fix Race Condition Crash Exploit #1849

Merged
merged 1 commit into from
Jan 18, 2024
Merged

Conversation

senseiwells
Copy link
Contributor

I was getting some off-thread warnings in another mod I'm working on when spawning fake players.
This lead me to try spamming /player foobar spawn in chat, which crashed the game.

I have just changed the thenAccept into a thenAcceptAsync on the main server thread. This now creates the player and spawns them on the main thread, so there are no more possible race conditions that can happen.

Copy link
Collaborator

@altrisi altrisi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense, thanks!

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.

None yet

2 participants