about summary refs log tree commit diff
path: root/linuxthreads/attr.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-12-28 23:33:48 +0000
committerUlrich Drepper <drepper@redhat.com>2003-12-28 23:33:48 +0000
commit5a299c962e5e096919470ba77a92522c278ad63a (patch)
treeeecaf5062b93fffa5836c72a6442d56e8bd2b133 /linuxthreads/attr.c
parent19eb812f634a70bfbb5885b88da71a8acaa3168b (diff)
downloadglibc-5a299c962e5e096919470ba77a92522c278ad63a.tar.gz
glibc-5a299c962e5e096919470ba77a92522c278ad63a.tar.xz
glibc-5a299c962e5e096919470ba77a92522c278ad63a.zip
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.
Diffstat (limited to 'linuxthreads/attr.c')
-rw-r--r--linuxthreads/attr.c5
1 files changed, 5 insertions, 0 deletions
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;