aboutsummaryrefslogtreecommitdiff
path: root/crypto/async/arch
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2015-03-25 16:08:44 +0000
committerMatt Caswell <matt@openssl.org>2015-11-20 23:32:18 +0000
commit06754949e4317f5ba7e318a8841b78a7d622053f (patch)
tree5eab19e543dea0bff328530bf98377c6abcb5d69 /crypto/async/arch
parent9ec1e03194568630a2e58232d56e9d37dd13ed7d (diff)
downloadopenssl-06754949e4317f5ba7e318a8841b78a7d622053f.zip
openssl-06754949e4317f5ba7e318a8841b78a7d622053f.tar.gz
openssl-06754949e4317f5ba7e318a8841b78a7d622053f.tar.bz2
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>
Diffstat (limited to 'crypto/async/arch')
-rw-r--r--crypto/async/arch/async_posix.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/crypto/async/arch/async_posix.c b/crypto/async/arch/async_posix.c
index 281f25f..1b21bcc 100644
--- a/crypto/async/arch/async_posix.c
+++ b/crypto/async/arch/async_posix.c
@@ -62,16 +62,18 @@
__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;