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

Prevent loading a zip with --main-pack from causing a stack overflow #66485

Merged
merged 1 commit into from
Sep 27, 2022

Conversation

nikitalita
Copy link
Contributor

@nikitalita nikitalita commented Sep 27, 2022

Attempting to load a zip with --main-pack causes a stack overflow.

The issue is here: https://github.com/godotengine/godot/pull/65271/files#r980701205

when _open() was renamed to open_internal(), the _open() call below was left in place, which ends up calling FileAccess::_open(), which becomes an infinite recursion and causes a stack overflow.

renaming the _open() call in the constructor to open_internal() fixes the issue.

@nikitalita nikitalita requested a review from a team as a code owner September 27, 2022 03:51
@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.

2 participants