KEMBAR78
ASYLUM: Fix use-after-free by phcoder · Pull Request #4998 · scummvm/scummvm · GitHub
Skip to content

Conversation

@phcoder
Copy link
Contributor

@phcoder phcoder commented May 10, 2023

String goes out of scope but its c_str is still used. Keep a reference while we still need it.

String goes out of scope but its c_str is still used. Keep a reference while
we still need it.
@bluegr
Copy link
Member

bluegr commented May 10, 2023

Nice catch, thanks!

@bluegr bluegr merged commit 0b2c54a into scummvm:master May 10, 2023
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.

2 participants