[debian-edu-commits] debian-edu/pkg-team/ 01/07: Add new heap-corruption.patch fixing memory corruption (Closes: #763530).

Petter Reinholdtsen pere at moszumanska.debian.org
Wed Oct 1 05:29:38 UTC 2014


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

pere pushed a commit to branch master
in repository ldap2zone.

commit 7d6e89ed136c2131138cbd87d5673d4e838a4f95
Author: Petter Reinholdtsen <pere at hungry.com>
Date:   Wed Oct 1 06:51:52 2014 +0200

    Add new heap-corruption.patch fixing memory corruption (Closes: #763530).
---
 debian/patches/heap-corruption.patch | 16 ++++++++++++++++
 debian/patches/series                |  1 +
 2 files changed, 17 insertions(+)

diff --git a/debian/patches/heap-corruption.patch b/debian/patches/heap-corruption.patch
new file mode 100644
index 0000000..8df631c
--- /dev/null
+++ b/debian/patches/heap-corruption.patch
@@ -0,0 +1,16 @@
+Description: Fix too short memory allocation.
+Author: Petter Reinholdtsen <tg at mirbsd.de>
+Bug-Debian: http://bugs.debian.org/763530
+Last-Update: 2014-09-30
+
+--- ldap2zone-0.2.orig/ldap2zone.c
++++ ldap2zone-0.2/ldap2zone.c
+@@ -222,7 +222,7 @@ int putrr(struct assstack_entry **stack,
+ 	free(rr);
+ 	return -1;
+     }
+-    rrdata->key.len = strlen(type) + strlen(ttl) + 1;
++    rrdata->key.len = strlen(type) + strlen(ttl) + 2; /* null byte and space */
+     rrdata->key.data = (void *) malloc(rrdata->key.len);
+     if (!rrdata->key.data) {
+ 	free(rrdata);
diff --git a/debian/patches/series b/debian/patches/series
index 9b264a3..6b25073 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 fix-default-location
 ldap_host_param
+heap-corruption.patch

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



More information about the debian-edu-commits mailing list