aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2002-11-18 07:41:00 +0000
committerUlrich Drepper <drepper@redhat.com>2002-11-18 07:41:00 +0000
commitdde36a31c0cba7ed837cd176c95315535c1334b8 (patch)
tree6318cf1b018a85d9ea9b5d1e4054e53574655d70
parent9b57c1c1e4c6889f47b200bcefe77f16becd2095 (diff)
downloadglibc-dde36a31c0cba7ed837cd176c95315535c1334b8.tar
glibc-dde36a31c0cba7ed837cd176c95315535c1334b8.tar.gz
glibc-dde36a31c0cba7ed837cd176c95315535c1334b8.tar.bz2
glibc-dde36a31c0cba7ed837cd176c95315535c1334b8.zip
Initialize word in the childs stack which will be loaded into the %esi register.
-rw-r--r--sysdeps/unix/sysv/linux/i386/clone.S2
1 files changed, 2 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/i386/clone.S b/sysdeps/unix/sysv/linux/i386/clone.S
index 64c0778fd7..8f655a7305 100644
--- a/sysdeps/unix/sysv/linux/i386/clone.S
+++ b/sysdeps/unix/sysv/linux/i386/clone.S
@@ -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