diff options
author | Ulrich Drepper <drepper@redhat.com> | 2004-07-14 16:24:56 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2004-07-14 16:24:56 +0000 |
commit | 4e9f676f9f6451e577f9c127ee1d9d9aa9c6a3fe (patch) | |
tree | 0b3fc65d5dab394ac74dcc9400ff130be0f4ae4a /nptl/sysdeps | |
parent | 72abd10b495688bf866e087b4d9c876108ef25d1 (diff) | |
download | glibc-4e9f676f9f6451e577f9c127ee1d9d9aa9c6a3fe.zip glibc-4e9f676f9f6451e577f9c127ee1d9d9aa9c6a3fe.tar.gz glibc-4e9f676f9f6451e577f9c127ee1d9d9aa9c6a3fe.tar.bz2 |
(__pthread_cond_timedwait): Check for invalid nanosecond in timeout value.
Diffstat (limited to 'nptl/sysdeps')
-rw-r--r-- | nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S b/nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S index 2d0df6b..7694f36 100644 --- a/nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S +++ b/nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S @@ -62,6 +62,12 @@ __pthread_cond_timedwait: add r0, r12 #endif + mov.l @(4,r13), r0 + mov.l .L1g, r1 + cmp/hs r1, r0 + bt/s 18f + mov #EINVAL, r0 + /* Get internal lock. */ mov #0, r3 mov #1, r4 |