From dde36a31c0cba7ed837cd176c95315535c1334b8 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Mon, 18 Nov 2002 07:41:00 +0000 Subject: Initialize word in the childs stack which will be loaded into the %esi register. --- sysdeps/unix/sysv/linux/i386/clone.S | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sysdeps') 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 -- cgit v1.2.3