[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

r3871 - in glibc-package/branches/glibc-branch-lenny/debian: . patches patches/any



Author: aurel32
Date: 2009-10-18 14:56:29 +0000 (Sun, 18 Oct 2009)
New Revision: 3871

Added:
   glibc-package/branches/glibc-branch-lenny/debian/patches/any/cvs-realloc.diff
Modified:
   glibc-package/branches/glibc-branch-lenny/debian/changelog
   glibc-package/branches/glibc-branch-lenny/debian/patches/series
Log:
  * patches/any/cvs-realloc.diff: fix bug in realloc() when enlarging a
    memory allocation.  Closes: bug#550625.



Modified: glibc-package/branches/glibc-branch-lenny/debian/changelog
===================================================================
--- glibc-package/branches/glibc-branch-lenny/debian/changelog	2009-10-18 14:48:59 UTC (rev 3870)
+++ glibc-package/branches/glibc-branch-lenny/debian/changelog	2009-10-18 14:56:29 UTC (rev 3871)
@@ -1,3 +1,10 @@
+glibc (2.7-18lenny1) unstable; urgency=low
+
+  * patches/any/cvs-realloc.diff: fix bug in realloc() when enlarging a
+    memory allocation.  Closes: bug#550625.
+
+ -- Aurelien Jarno <aurel32@debian.org>  Sun, 18 Oct 2009 16:54:05 +0200
+
 glibc (2.7-18) unstable; urgency=low
 
   * patches/localedata/mt_MT_euro.diff, patches/localedata/el_CY_euro.diff:

Added: glibc-package/branches/glibc-branch-lenny/debian/patches/any/cvs-realloc.diff
===================================================================
--- glibc-package/branches/glibc-branch-lenny/debian/patches/any/cvs-realloc.diff	                        (rev 0)
+++ glibc-package/branches/glibc-branch-lenny/debian/patches/any/cvs-realloc.diff	2009-10-18 14:56:29 UTC (rev 3871)
@@ -0,0 +1,18 @@
+2008-11-02  Ulrich Drepper  <drepper@redhat.com>
+
+	* malloc/malloc.c (public_rEALLOc): When new arena is used, copy
+	really all bytes.  Patch by Denys Vlasenko <dvlasenk@redhat.com>.
+
+diff --git a/malloc/malloc.c b/malloc/malloc.c
+index feca2cb..d6102a4 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);

Modified: glibc-package/branches/glibc-branch-lenny/debian/patches/series
===================================================================
--- glibc-package/branches/glibc-branch-lenny/debian/patches/series	2009-10-18 14:48:59 UTC (rev 3870)
+++ glibc-package/branches/glibc-branch-lenny/debian/patches/series	2009-10-18 14:56:29 UTC (rev 3871)
@@ -231,3 +231,4 @@
 #any/submitted-fileops-and-signals.diff
 any/local-missing-linux_types.h.diff
 any/submitted-user_h.diff -p1
+any/cvs-realloc.diff -p1


Reply to: