[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[commits] r7263 - in /fsf/trunk/libc: ChangeLog malloc/malloc.c
- To: commits@xxxxxxxxxx
- Subject: [commits] r7263 - in /fsf/trunk/libc: ChangeLog malloc/malloc.c
- From: eglibc@xxxxxxxxxx
- Date: Tue, 04 Nov 2008 08:03:16 -0000
Author: eglibc
Date: Tue Nov 4 00:03:14 2008
New Revision: 7263
Log:
Import glibc-mainline for 2008-11-04
Modified:
fsf/trunk/libc/ChangeLog
fsf/trunk/libc/malloc/malloc.c
Modified: fsf/trunk/libc/ChangeLog
==============================================================================
--- fsf/trunk/libc/ChangeLog (original)
+++ fsf/trunk/libc/ChangeLog Tue Nov 4 00:03:14 2008
@@ -1,3 +1,8 @@
+2008-11-02 Ulrich Drepper <drepper@xxxxxxxxxx>
+
+ * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
+ really all bytes. Patch by Denys Vlasenko <dvlasenk@xxxxxxxxxx>.
+
2008-11-01 Ulrich Drepper <drepper@xxxxxxxxxx>
[BZ #6966]
Modified: fsf/trunk/libc/malloc/malloc.c
==============================================================================
--- fsf/trunk/libc/malloc/malloc.c (original)
+++ fsf/trunk/libc/malloc/malloc.c Tue Nov 4 00:03:14 2008
@@ -3717,7 +3717,7 @@
newp = public_mALLOc(bytes);
if (newp != NULL)
{
- MALLOC_COPY (newp, oldmem, oldsize - 2 * SIZE_SZ);
+ MALLOC_COPY (newp, oldmem, oldsize - SIZE_SZ);
#if THREAD_STATS
if(!mutex_trylock(&ar_ptr->mutex))
++(ar_ptr->stat_lock_direct);