From 4e9f676f9f6451e577f9c127ee1d9d9aa9c6a3fe Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 14 Jul 2004 16:24:56 +0000 Subject: (__pthread_cond_timedwait): Check for invalid nanosecond in timeout value. --- nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'nptl') 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 2d0df6b5bf..7694f36f95 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 -- cgit v1.2.3