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

Stack overflow on windows due to large, stack-allocated object #44

Open
CIB opened this issue Apr 5, 2012 · 0 comments
Open

Stack overflow on windows due to large, stack-allocated object #44

CIB opened this issue Apr 5, 2012 · 0 comments

Comments

@CIB
Copy link

CIB commented Apr 5, 2012

In map.cpp in the loadn function, the following line causes issues:

map tmp_map(itypes, mapitems, traps);

This segfaults on my computer due to a stack overflow. Replacing it with the following line resolves the issue:

map* tmp_map = new map(itypes, mapitems, traps);

Of course, a call to free(tmp_map) is now necessary at function end.

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

No branches or pull requests

1 participant