]> sourceware.org Git - glibc.git/commitdiff
(__pthread_cond_timedwait): Check for invalid nanosecond in timeout value.
authorUlrich Drepper <drepper@redhat.com>
Wed, 14 Jul 2004 16:24:56 +0000 (16:24 +0000)
committerUlrich Drepper <drepper@redhat.com>
Wed, 14 Jul 2004 16:24:56 +0000 (16:24 +0000)
nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S

index 2d0df6b5bf7bd751cdadb23d7cbb3b8c94bcac60..7694f36f958bc229868b13626f7150bf152b9ce1 100644 (file)
@@ -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
This page took 0.044639 seconds and 5 git commands to generate.