(__pthread_cond_timedwait): Check for invalid nanosecond in timeout value.

This commit is contained in:
Ulrich Drepper 2004-07-14 16:24:56 +00:00
parent 72abd10b49
commit 4e9f676f9f

View File

@ -62,6 +62,12 @@ __pthread_cond_timedwait:
add r0, r12 add r0, r12
#endif #endif
mov.l @(4,r13), r0
mov.l .L1g, r1
cmp/hs r1, r0
bt/s 18f
mov #EINVAL, r0
/* Get internal lock. */ /* Get internal lock. */
mov #0, r3 mov #0, r3
mov #1, r4 mov #1, r4