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 access to freed mem in WS client after #23241 #23490

Merged
merged 1 commit into from
Nov 10, 2018

Conversation

Faless
Copy link
Collaborator

@Faless Faless commented 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. @hpvb can you confirm? (lws_client_connect_via_info internally calls strdup on the buffer passed to it).

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
@Faless Faless added this to the 3.1 milestone Nov 3, 2018
@Faless Faless requested a review from hpvb November 3, 2018 22:40
@Faless Faless requested a review from a team as a code owner November 3, 2018 22:40
@akien-mga
Copy link
Member

Let's give it a spin :)

@akien-mga akien-mga merged commit c02cd51 into godotengine:master Nov 10, 2018
@akien-mga
Copy link
Member

Thanks!

@Faless Faless deleted the lws_client_memfix branch February 5, 2022 01:41
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.

None yet

2 participants