Increase stack size
authorMatt Caswell <matt@openssl.org>
Wed, 25 Mar 2015 16:08:44 +0000 (16:08 +0000)
committerMatt Caswell <matt@openssl.org>
Fri, 20 Nov 2015 23:32:18 +0000 (23:32 +0000)
Some assembler code puts a lot of stuff on the stack, so up the stack size.

Reviewed-by: Rich Salz <rsalz@openssl.org>
crypto/async/arch/async_posix.c

index 281f25f..1b21bcc 100644 (file)
 
 __thread ASYNC_CTX *sysvctx;
 
+#define STACKSIZE       32768
+
 int ASYNC_FIBRE_init(ASYNC_FIBRE *fibre)
 {
     void *stack = NULL;
 
-    if (!(stack = OPENSSL_malloc(SIGSTKSZ))) {
+    if (!(stack = OPENSSL_malloc(STACKSIZE))) {
         return 0;
     }
 
     fibre->fibre.uc_stack.ss_sp = stack;
-    fibre->fibre.uc_stack.ss_size = SIGSTKSZ;
+    fibre->fibre.uc_stack.ss_size = STACKSIZE;
     fibre->fibre.uc_link = NULL;
 
     return 1;