Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
4324: Increase stack size for stack overflow test with snmalloc r=CyanDevs a=mingweishih

The existing stack size (2 pages) is too small for snmalloc. Increase the size to 4 pages so that the test works with snmalloc.

Signed-off-by: Ming-Wei Shih <[email protected]>

Co-authored-by: Ming-Wei Shih <[email protected]>
  • Loading branch information
oeciteam and mingweishih committed Dec 6, 2021
2 parents f88a272 + 141ac64 commit 7b87ea7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/stack_overflow_exception/enc/enc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion tests/stack_overflow_exception/enc/sign.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Debug=1
CapturePFGPExceptions=1
NumHeapPages=1024
NumStackPages=2
NumStackPages=4
NumTCS=1
ProductID=1
SecurityVersion=1

0 comments on commit 7b87ea7

Please sign in to comment.