about summary refs log tree commit diff
path: root/malloc
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2008-11-03 08:07:39 +0000
committerUlrich Drepper <drepper@redhat.com>2008-11-03 08:07:39 +0000
commit486bdb886330a250af76cbb12af55d2c67ec0981 (patch)
treef511a942b90bf2216c123f4de8e1d5b4afbe1a65 /malloc
parentefac1fce6212f0e471ce7fa2519b1d3a4a084ddc (diff)
downloadglibc-486bdb886330a250af76cbb12af55d2c67ec0981.tar.gz
glibc-486bdb886330a250af76cbb12af55d2c67ec0981.tar.xz
glibc-486bdb886330a250af76cbb12af55d2c67ec0981.zip
* malloc/malloc.c (public_rEALLOc): When new arena is used, copy
	really all bytes.  Patch by Denys Vlasenko <dvlasenk@redhat.com>.
Diffstat (limited to 'malloc')
-rw-r--r--malloc/malloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/malloc/malloc.c b/malloc/malloc.c
index feca2cbea9..d6102a4528 100644
--- a/malloc/malloc.c
+++ b/malloc/malloc.c
@@ -3717,7 +3717,7 @@ public_rEALLOc(Void_t* oldmem, size_t bytes)
       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);