This is the mail archive of the mailing list for the glibc project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GNU C Library master sources branch, master, updated. glibc-2.14-492-gae1bc2f

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, master has been updated
       via  ae1bc2fa1c58b13ffa83483c24e547148762e24f (commit)
      from  998832a46688b9fb3a101eccae77bc45e7c1d7ab (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------;a=commitdiff;h=ae1bc2fa1c58b13ffa83483c24e547148762e24f

commit ae1bc2fa1c58b13ffa83483c24e547148762e24f
Author: Andreas Schwab <>
Date:   Mon Nov 7 11:43:13 2011 +0100

    Fix buffer allocation in files initgroups handler

diff --git a/ChangeLog b/ChangeLog
index e57f098..b09f5ef 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-11-07  Andreas Schwab  <>
+	* nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
+	Fix size of allocated buffer.
 2011-11-04  Andreas Schwab  <>
 	[BZ #10103]
diff --git a/nss/nss_files/files-initgroups.c b/nss/nss_files/files-initgroups.c
index c343b35..2f88f60 100644
--- a/nss/nss_files/files-initgroups.c
+++ b/nss/nss_files/files-initgroups.c
@@ -73,7 +73,7 @@ _nss_files_initgroups_dyn (const char *user, gid_t group, long int *start,
 	  if (buffer_use_malloc || ! __libc_use_alloca (buflen + newbuflen))
 	      void *newbuf = realloc (buffer_use_malloc ? buffer : NULL,
-				      buflen);
+				      newbuflen);
 	      if (newbuf == NULL)
 		  *errnop = ENOMEM;


Summary of changes:
 ChangeLog                        |    5 +++++
 nss/nss_files/files-initgroups.c |    2 +-
 2 files changed, 6 insertions(+), 1 deletions(-)

GNU C Library master sources

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]