| Index: src/trusted/service_runtime/arch/x86_32/springboard.S
|
| diff --git a/src/trusted/service_runtime/arch/x86_32/springboard.S b/src/trusted/service_runtime/arch/x86_32/springboard.S
|
| index 03eb0dd259611b53fa9992a9a15aca145b6fb04e..c88199dabba4b1f8164a1f3dd5890391824b697d 100644
|
| --- a/src/trusted/service_runtime/arch/x86_32/springboard.S
|
| +++ b/src/trusted/service_runtime/arch/x86_32/springboard.S
|
| @@ -29,6 +29,8 @@ DEFINE_GLOBAL_HIDDEN_IDENTIFIER(NaCl_springboard):
|
| mov NACL_THREAD_CONTEXT_OFFSET_SYSRET(%ecx), %eax
|
| lss NACL_THREAD_CONTEXT_OFFSET_STACK_PTR(%ecx), %esp
|
| movw NACL_THREAD_CONTEXT_OFFSET_DS(%ecx), %ds
|
| + /* Set %ecx to zero to avoid leaking the NaClThreadContext address */
|
| + xorl %ecx, %ecx
|
| jmp *%edx
|
| DEFINE_GLOBAL_HIDDEN_IDENTIFIER(NaCl_springboard_end):
|
|
|
|
|