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 possible crash (use after free) in ScriptTextEditor #86633

Merged
merged 1 commit into from
Feb 13, 2024

Conversation

rune-scape
Copy link
Contributor

@rune-scape rune-scape commented Dec 30, 2023

while trying to make a PR to fix #79882, i noticed that #81156 already fixed it,
and also noticed a use after free bug, this fixes that
(the crash would have happened when calling E->next() after calling E->erase() which destructs it)

@rune-scape rune-scape requested a review from a team as a code owner December 30, 2023 10:56
@AThousandShips AThousandShips added this to the 4.3 milestone Dec 30, 2023
@akien-mga akien-mga changed the title Fix possible crash (use after free) in script_text_editor.cpp Fix possible crash (use after free) in ScriptTextEditor Feb 13, 2024
@akien-mga akien-mga merged commit 7617037 into godotengine:master Feb 13, 2024
15 checks passed
@akien-mga
Copy link
Member

Thanks!

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.

Editor crash when attaching a certain tool script
3 participants