From 5a299c962e5e096919470ba77a92522c278ad63a Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sun, 28 Dec 2003 23:33:48 +0000 Subject: Update. * posix/regexec.c (re_copy_regs): Allocate start and end array in one block. (push_fail_stack): Add missing check for failed memory allocation. _IO_peekc_unlocked, _IO_ptc_unlocked, _IO_getwc_unlocked, and overflow for 0 as argument. Raise Invalid exception for negative args. --- linuxthreads/attr.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'linuxthreads/attr.c') diff --git a/linuxthreads/attr.c b/linuxthreads/attr.c index 56f6cba092..80f5249d36 100644 --- a/linuxthreads/attr.c +++ b/linuxthreads/attr.c @@ -455,12 +455,17 @@ int pthread_getattr_np (pthread_t thread, pthread_attr_t *attr) { /* Found the entry. Now we have the info we need. */ attr->__stacksize = rl.rlim_cur; +#ifdef _STACK_GROWS_UP + /* Don't check to enforce a limit on the __stacksize */ + attr->__stackaddr = (void *) from; +#else attr->__stackaddr = (void *) to; /* The limit might be too high. This is a bogus situation but try to avoid making it worse. */ if ((size_t) attr->__stacksize > (size_t) attr->__stackaddr) attr->__stacksize = (size_t) attr->__stackaddr; +#endif /* We succeed and no need to look further. */ ret = 0; -- cgit 1.4.1