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

Potential login crash #492

Merged
merged 2 commits into from Dec 17, 2022
Merged

Potential login crash #492

merged 2 commits into from Dec 17, 2022

Conversation

turleypol
Copy link
Member

client_io_thread returns false if the client will be deleted.
Since we didn't checked here the return value we have a dangling pointer if the thread who deletes the client is faster then the later loop which correctly checks the return value.

initial client loop can fail and thus the client will be deleted.
leading to an access violation if the delete thread is faster then the login thread.
@coveralls
Copy link
Collaborator

Coverage Status

Coverage increased (+0.003%) to 42.792% when pulling 002c094 on potentiallogincrash into ab15172 on master.

Copy link
Contributor

@KevinEady KevinEady left a comment

Choose a reason for hiding this comment

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

LGTM!

@turleypol turleypol merged commit 83de33a into master Dec 17, 2022
@turleypol turleypol deleted the potentiallogincrash branch December 17, 2022 17:35
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

3 participants