This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug nptl/13358] R15 may be uninitialized in x86_64/pthread_cond_timedwait.S


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]