diff options
author | Ulrich Drepper <drepper@redhat.com> | 2004-06-18 04:29:42 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2004-06-18 04:29:42 +0000 |
commit | 7c3164bc6650ceeecd67841dfb8fcf399d12a93f (patch) | |
tree | 23a7016e21d2848ec2d3fdfa1b8dc1abcf3e85d4 /nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S | |
parent | 72e615009bfde798692487d04ae548d15eb423ba (diff) | |
download | glibc-7c3164bc6650ceeecd67841dfb8fcf399d12a93f.tar.gz glibc-7c3164bc6650ceeecd67841dfb8fcf399d12a93f.tar.xz glibc-7c3164bc6650ceeecd67841dfb8fcf399d12a93f.zip |
Update.
2004-06-17 Ulrich Drepper <drepper@redhat.com> * sysdeps/pthread/pthread_cond_timedwait.c (__pthread_cond_timedwait): Also check for negativ nanoseconds. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S (__pthread_cond_timedwait): Check for invalid nanosecond in timeout value. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise. * tst-cond19.c: New file. * Makefile: Add rules to build and run tst-cond19.
Diffstat (limited to 'nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S')
-rw-r--r-- | nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S | 5 |
1 files changed, 5 insertions, 0 deletions
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 e75f05e07f..5c6a471096 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 @@ -54,6 +54,11 @@ __pthread_cond_timedwait: #define FRAME_SIZE 80 subq $FRAME_SIZE, %rsp .Lsubq: + + cmpq $1000000000, 8(%rdx) + movl $EINVAL, %rax + jae 18f + /* Stack frame: rsp + 80 |