Index: src/trusted/service_runtime/nacl_syscall_common.c |
diff --git a/src/trusted/service_runtime/nacl_syscall_common.c b/src/trusted/service_runtime/nacl_syscall_common.c |
index ae4b4649df35e7f0131fc71ccefcbb2d7060e27e..925c0049a119dd855e1dc0ae2b17f646e7dbb54d 100644 |
--- a/src/trusted/service_runtime/nacl_syscall_common.c |
+++ b/src/trusted/service_runtime/nacl_syscall_common.c |
@@ -2455,7 +2455,8 @@ int32_t NaClSysThreadCreate(struct NaClAppThread *natp, |
/* Align the stack pointer. */ |
stack_ptr = ((stack_ptr + NACL_STACK_PAD_BELOW_ALIGN) |
- & ~NACL_STACK_ALIGN_MASK) - NACL_STACK_PAD_BELOW_ALIGN; |
+ & ~NACL_STACK_ALIGN_MASK) - NACL_STACK_PAD_BELOW_ALIGN |
+ - NACL_STACK_ARG_SIZE; |
Mark Seaborn
2013/03/07 16:07:53
Nit: indent by 1 fewer space, because this is not
petarj
2013/03/07 17:33:12
Done.
|
sys_stack = NaClUserToSysAddr(nap, stack_ptr); |
if (kNaClBadAddress == sys_stack) { |