Skip to content

Commit

Permalink
AMIGAOS: Add a stack cookie
Browse files Browse the repository at this point in the history
Setting up a static stack to avoid crashes from a stack set too low.
  • Loading branch information
raziel- authored and digitall committed Aug 8, 2014
1 parent 38f7a9b commit cbae401
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions backends/platform/sdl/amigaos/amigaos-main.cpp
Expand Up @@ -30,6 +30,9 @@

int main(int argc, char *argv[]) {

// Set up a stack cookie to avoid crashes due to too few stack set by users
static const char *stack_cookie __attribute__((used)) = "$STACK: 600000";

// Create our OSystem instance
g_system = new OSystem_AmigaOS();
assert(g_system);
Expand Down

0 comments on commit cbae401

Please sign in to comment.