Increase stack size

Some assembler code puts a lot of stuff on the stack, so up the stack size.

Reviewed-by: Rich Salz <rsalz@openssl.org>
This commit is contained in:
Matt Caswell 2015-03-25 16:08:44 +00:00
parent 9ec1e03194
commit 06754949e4

View File

@ -62,16 +62,18 @@
__thread ASYNC_CTX *sysvctx; __thread ASYNC_CTX *sysvctx;
#define STACKSIZE 32768
int ASYNC_FIBRE_init(ASYNC_FIBRE *fibre) int ASYNC_FIBRE_init(ASYNC_FIBRE *fibre)
{ {
void *stack = NULL; void *stack = NULL;
if (!(stack = OPENSSL_malloc(SIGSTKSZ))) { if (!(stack = OPENSSL_malloc(STACKSIZE))) {
return 0; return 0;
} }
fibre->fibre.uc_stack.ss_sp = stack; 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; fibre->fibre.uc_link = NULL;
return 1; return 1;