Skip to content

fix: initialize msg_count in YNOConnection - #89

Open
jackssrt wants to merge 1 commit into
ynoproject:masterfrom
jackssrt:fix-initialize-message-count
Open

fix: initialize msg_count in YNOConnection#89
jackssrt wants to merge 1 commit into
ynoproject:masterfrom
jackssrt:fix-initialize-message-count

Conversation

@jackssrt

Copy link
Copy Markdown

this pr initializes the memory used for msg_count in YNOConnection, it used to use uninitialized memory which could technically be anything including a high bit pattern.
considering the fact that ynoserver ignores clients (without disconnecting) after the message count gets too big, this could make you effectively soft-locked from online play.

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.

1 participant