This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug nptl/13358] R15 may be uninitialized in x86_64/pthread_cond_timedwait.S
- From: "hjl.tools at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: Fri, 28 Oct 2011 16:57:12 +0000
- Subject: [Bug nptl/13358] R15 may be uninitialized in x86_64/pthread_cond_timedwait.S
- Auto-submitted: auto-generated
- References: <bug-13358-131@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=13358
--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> 2011-10-28 16:57:12 UTC ---
This patch
diff --git a/nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
b/nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
index 1caba54..c3cfeec 100644
--- a/nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
+++ b/nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
@@ -112,6 +112,7 @@ __pthread_cond_timedwait:
/* Get internal lock. */
movl $1, %esi
+ xorl %r15d, %r15d
xorl %eax, %eax
LOCK
#if cond_lock == 0
works for me.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.