(__pthread_cond_timedwait): Check for invalid nanosecond in timeout value.
This commit is contained in:
parent
72abd10b49
commit
4e9f676f9f
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user