Initialize word in the childs stack which will be loaded into the %esi register.
authorUlrich Drepper <drepper@redhat.com>
Mon, 18 Nov 2002 07:41:00 +0000 (07:41 +0000)
committerUlrich Drepper <drepper@redhat.com>
Mon, 18 Nov 2002 07:41:00 +0000 (07:41 +0000)
sysdeps/unix/sysv/linux/i386/clone.S

index 64c0778..8f655a7 100644 (file)
@@ -69,6 +69,8 @@ ENTRY (BP_SYM (__clone))
           It will be popped off in the child in the ebx frobbing below.  */
        movl    FUNC(%esp),%eax
        movl    %eax,4(%ecx)
+       /* Don't leak any information.  */
+       movl    $0,(%ecx)
 
        /* Do the system call */
        pushl   %ebx