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

[glibc] 01/01: fix malloc_setstate



This is an automated email from the git hooks/post-receive script.

sthibault pushed a commit to branch glibc-2.24
in repository glibc.

commit 42f8a14cbd993e70ff38a11ac6e30d9e76f2a5f3
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Wed Jul 6 21:19:59 2016 +0200

    fix malloc_setstate
    
    patches/hurd-i386/submitted-malloc-setstate.diff: New patch
---
 debian/changelog                                        |  2 ++
 debian/patches/hurd-i386/submitted-malloc-setstate.diff | 12 ++++++++++++
 debian/patches/series                                   |  1 +
 3 files changed, 15 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 04663ce..6e31b86 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,8 @@ glibc (2.23.90+20160507.87523e9-2) UNRELEASED; urgency=medium
 
   [ Samuel Thibault ]
   * patches/hurd-i386/cvs-PTR_MANGLE.diff: New patch to fix build.
+  * patches/hurd-i386/submitted-malloc-setstate.diff: New patch to fix
+    malloc_setstate.
 
   [ Aurelien Jarno ]
   * debian/testsuite-xfail-debian.mk: allow conform/XPG3/sys/stat.h
diff --git a/debian/patches/hurd-i386/submitted-malloc-setstate.diff b/debian/patches/hurd-i386/submitted-malloc-setstate.diff
new file mode 100644
index 0000000..31d72ca
--- /dev/null
+++ b/debian/patches/hurd-i386/submitted-malloc-setstate.diff
@@ -0,0 +1,12 @@
+diff --git a/malloc/malloc.c b/malloc/malloc.c
+index 1f5f166..8fa49e0 100644
+--- a/malloc/malloc.c
++++ b/malloc/malloc.c
+@@ -2682,6 +2685,7 @@ sysmalloc (INTERNAL_SIZE_T nb, mstate av)
+               if (snd_brk != (char *) (MORECORE_FAILURE))
+                 {
+                   av->top = (mchunkptr) aligned_brk;
++                  av->top->prev_size = 0;
+                   set_head (av->top, (snd_brk - aligned_brk + correction) | PREV_INUSE);
+                   av->system_mem += correction;
+ 
diff --git a/debian/patches/series b/debian/patches/series
index 4988862..a4389ea 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -137,6 +137,7 @@ hurd-i386/local-versions.diff
 hurd-i386/tg-faccessat.diff
 hurd-i386/tg-eintr.diff
 hurd-i386/cvs-PTR_MANGLE.diff
+hurd-i386/submitted-malloc-setstate.diff
 
 i386/local-biarch.diff
 i386/local-cmov.diff

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-glibc/glibc.git


Reply to: