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

Remove unneeded strncpy in lws_client. #23241

Merged
merged 2 commits into from
Oct 23, 2018

Conversation

Faless
Copy link
Collaborator

@Faless Faless commented Oct 23, 2018

Pass the String buffer directly, lws_client_connect_via_info will copy them for us.

Closes #23236
Fixes #23141

Edit: Also add missing definition of EMWSServer::poll in ref to #23005

Pass the String buffer directly, lws_client_connect_via_info will copy
them for us.
Empty of course as server is not supported in HTML5, but the symbol must
be defined.
@Faless
Copy link
Collaborator Author

Faless commented Oct 23, 2018

Also add missing definition of EMWSServer::poll in ref to #23005

@akien-mga akien-mga merged commit 841d62c into godotengine:master Oct 23, 2018
@akien-mga
Copy link
Member

Thanks!

@Faless Faless deleted the lws_more_fix branch October 23, 2018 11:27
Faless added a commit to Faless/godot that referenced this pull request Nov 3, 2018
I was wrong in assuming that String had to survive long enough to avoid
it, what actually needed to survive was the CharString obtained from the
acsii() or utf8() function.
At least according to valgrind
akien-mga added a commit that referenced this pull request Nov 10, 2018
Fix access to freed mem in WS client after #23241
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants