From 141ac64d93c3b665f8e7886a672f357dd3867b19 Mon Sep 17 00:00:00 2001 From: Ming-Wei Shih Date: Thu, 2 Dec 2021 18:00:58 +0000 Subject: [PATCH] Increase stack size for stack overflow test with snmalloc Signed-off-by: Ming-Wei Shih --- tests/stack_overflow_exception/enc/enc.c | 2 +- tests/stack_overflow_exception/enc/sign.conf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/stack_overflow_exception/enc/enc.c b/tests/stack_overflow_exception/enc/enc.c index 94f6b13237..709abc51ea 100644 --- a/tests/stack_overflow_exception/enc/enc.c +++ b/tests/stack_overflow_exception/enc/enc.c @@ -12,7 +12,7 @@ #define PAGE_SIZE 4096 #define EXCEPTION_HANDLER_STACK_SIZE 8192 -#define STACK_PAGE_NUMBER 2 +#define STACK_PAGE_NUMBER 4 #define STACK_SIZE (STACK_PAGE_NUMER * PAGE_SIZE) void* td_to_tcs(const oe_sgx_td_t* td); diff --git a/tests/stack_overflow_exception/enc/sign.conf b/tests/stack_overflow_exception/enc/sign.conf index 4a13841108..dbc8ba7bd4 100644 --- a/tests/stack_overflow_exception/enc/sign.conf +++ b/tests/stack_overflow_exception/enc/sign.conf @@ -5,7 +5,7 @@ Debug=1 CapturePFGPExceptions=1 NumHeapPages=1024 -NumStackPages=2 +NumStackPages=4 NumTCS=1 ProductID=1 SecurityVersion=1