]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Thu, 29 Jul 1999 15:48:47 +0000 (15:48 +0000)
committerUlrich Drepper <drepper@redhat.com>
Thu, 29 Jul 1999 15:48:47 +0000 (15:48 +0000)
1999-07-29  Ulrich Drepper  <drepper@cygnus.com>

* nis/nss_nis/nis-initgroups.c (_nss_nis_initgroups): Correct size
argument in realloc call.
* nis/nss_compat/compat-initgroups.c (_nss_compat_initgroups):
Likewise.
Reported by Danny Braniss <danny@cs.huji.ac.il>.

ChangeLog
nis/nss_compat/compat-initgroups.c
nis/nss_nis/nis-initgroups.c

index a087ab76399b4ef34351844dcfe0dfa5d6b7dd57..b11b07dc5679c69c46a7d5e6fcc67cfa6d82d34f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+1999-07-29  Ulrich Drepper  <drepper@cygnus.com>
+
+       * nis/nss_nis/nis-initgroups.c (_nss_nis_initgroups): Correct size
+       argument in realloc call.
+       * nis/nss_compat/compat-initgroups.c (_nss_compat_initgroups):
+       Likewise.
+       Reported by Danny Braniss <danny@cs.huji.ac.il>.
+
 1999-07-28  Ulrich Drepper  <drepper@cygnus.com>
 
        * misc/efgcvt.c: Use IEEE 854 formula to compute the number of digits
index a0c3455eb61ff6522cb55e0628966adb3c431535..47b395ede6c4b9c133037eb2d71a77d362b5f598 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1998 Free Software Foundation, Inc.
+/* Copyright (C) 1998, 1999 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Thorsten Kukuk <kukuk@vt.uni-paderborn.de>, 1998.
 
@@ -620,7 +620,7 @@ _nss_compat_initgroups (const char *user, gid_t group, long int *start,
                 if (*start == *size && limit <= 0)
                   {
                     /* Need a bigger buffer.  */
-                    groups = realloc (groups, *size * sizeof (*groups));
+                    groups = realloc (groups, 2 * *size * sizeof (*groups));
                     if (groups == NULL)
                       goto done;
                     *size *= 2;
index b69fea4e85f41fa46ac2371a9c2aed7e713dbd61..c5577c9cedc4df8e71cfe690d50d0d51f15bdfda 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1998 Free Software Foundation, Inc.
+/* Copyright (C) 1998, 1999 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Thorsten Kukuk <kukuk@vt.uni-paderborn.de>, 1998.
 
@@ -174,7 +174,7 @@ _nss_nis_initgroups (const char *user, gid_t group, long int *start,
                 if (*start == *size && limit <= 0)
                   {
                     /* Need a bigger buffer.  */
-                   groups = realloc (groups, *size * sizeof (*groups));
+                   groups = realloc (groups, 2 * *size * sizeof (*groups));
                    if (groups == NULL)
                      goto done;
                     *size *= 2;