diff options
author | raziel- | 2014-08-08 14:06:40 +0300 |
---|---|---|
committer | D G Turner | 2014-08-08 13:43:59 +0100 |
commit | cbae401a797ffbb262cf05f0707da41f3483d6ee (patch) | |
tree | 1998cadb501b39667ccea77cd1beb91379f6883f /backends/platform/sdl | |
parent | 38f7a9bc705f6b79e21d229dc40afcf6decfc241 (diff) | |
download | scummvm-rg350-cbae401a797ffbb262cf05f0707da41f3483d6ee.tar.gz scummvm-rg350-cbae401a797ffbb262cf05f0707da41f3483d6ee.tar.bz2 scummvm-rg350-cbae401a797ffbb262cf05f0707da41f3483d6ee.zip |
AMIGAOS: Add a stack cookie
Setting up a static stack to avoid crashes from a stack set too low.
Diffstat (limited to 'backends/platform/sdl')
-rw-r--r-- | backends/platform/sdl/amigaos/amigaos-main.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/backends/platform/sdl/amigaos/amigaos-main.cpp b/backends/platform/sdl/amigaos/amigaos-main.cpp index 0743b3f9a0..65da6bbf85 100644 --- a/backends/platform/sdl/amigaos/amigaos-main.cpp +++ b/backends/platform/sdl/amigaos/amigaos-main.cpp @@ -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); |