diff options
author | Ulrich Drepper <drepper@redhat.com> | 2009-01-28 20:04:49 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2009-01-28 20:04:49 +0000 |
commit | 5627534a81943eb4317651bb8d2daa6d93accd25 (patch) | |
tree | e405dc10045d6787498ae00e1de3f3739eab6ec1 | |
parent | a7bd183ffe1bd3c8d68e832cfb6f4c3df76d52f1 (diff) | |
download | glibc-5627534a81943eb4317651bb8d2daa6d93accd25.zip glibc-5627534a81943eb4317651bb8d2daa6d93accd25.tar.gz glibc-5627534a81943eb4317651bb8d2daa6d93accd25.tar.bz2 |
[BZ #9741]
2009-01-28 Ulrich Drepper <drepper@redhat.com>
[BZ #9741]
* nscd/mem.c (gc): Fix assignment of he_data in case malloc is used.
Reported by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>.
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | nscd/mem.c | 4 |
2 files changed, 8 insertions, 2 deletions
@@ -1,3 +1,9 @@ +2009-01-28 Ulrich Drepper <drepper@redhat.com> + + [BZ #9741] + * nscd/mem.c (gc): Fix assignment of he_data in case malloc is used. + Reported by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>. + 2009-01-14 Kaz Kojima <kkojima@rr.iij4u.or.jp> * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL): @@ -1,5 +1,5 @@ /* Cache memory handling. - Copyright (C) 2004, 2005, 2006, 2008 Free Software Foundation, Inc. + Copyright (C) 2004, 2005, 2006, 2008, 2009 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper <drepper@redhat.com>, 2004. @@ -163,7 +163,7 @@ gc (struct database_dyn *db) else { he = xmalloc (memory_needed); - he_data = &he[db->head->nentries * sizeof (struct hashentry *)]; + he_data = &he[db->head->nentries]; he_use_malloc = true; } |