mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
Update.
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>.
This commit is contained in:
@ -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>
|
1999-07-28 Ulrich Drepper <drepper@cygnus.com>
|
||||||
|
|
||||||
* misc/efgcvt.c: Use IEEE 854 formula to compute the number of digits
|
* misc/efgcvt.c: Use IEEE 854 formula to compute the number of digits
|
||||||
|
@ -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.
|
This file is part of the GNU C Library.
|
||||||
Contributed by Thorsten Kukuk <kukuk@vt.uni-paderborn.de>, 1998.
|
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)
|
if (*start == *size && limit <= 0)
|
||||||
{
|
{
|
||||||
/* Need a bigger buffer. */
|
/* Need a bigger buffer. */
|
||||||
groups = realloc (groups, *size * sizeof (*groups));
|
groups = realloc (groups, 2 * *size * sizeof (*groups));
|
||||||
if (groups == NULL)
|
if (groups == NULL)
|
||||||
goto done;
|
goto done;
|
||||||
*size *= 2;
|
*size *= 2;
|
||||||
|
@ -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.
|
This file is part of the GNU C Library.
|
||||||
Contributed by Thorsten Kukuk <kukuk@vt.uni-paderborn.de>, 1998.
|
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)
|
if (*start == *size && limit <= 0)
|
||||||
{
|
{
|
||||||
/* Need a bigger buffer. */
|
/* Need a bigger buffer. */
|
||||||
groups = realloc (groups, *size * sizeof (*groups));
|
groups = realloc (groups, 2 * *size * sizeof (*groups));
|
||||||
if (groups == NULL)
|
if (groups == NULL)
|
||||||
goto done;
|
goto done;
|
||||||
*size *= 2;
|
*size *= 2;
|
||||||
|
Reference in New Issue
Block a user