rpms/ldns/devel ldns-keygen-hmac-memory.patch, NONE, 1.1 ldns.spec, 1.41, 1.42

Paul Wouters pwouters at fedoraproject.org
Thu Apr 16 20:21:07 UTC 2009


Author: pwouters

Update of /cvs/extras/rpms/ldns/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv24397

Modified Files:
	ldns.spec 
Added Files:
	ldns-keygen-hmac-memory.patch 
Log Message:
added patch to fix memory corruption in ldns-keygen


ldns-keygen-hmac-memory.patch:

--- NEW FILE ldns-keygen-hmac-memory.patch ---
Index: keys.c
===================================================================
--- keys.c	(revision 2895)
+++ keys.c	(revision 2897)
@@ -1050,7 +1050,7 @@
 		case LDNS_SIGN_HMACMD5:
 		case LDNS_SIGN_HMACSHA1:
 		case LDNS_SIGN_HMACSHA256:
-			bin = LDNS_XMALLOC(unsigned char, size);
+			bin = LDNS_XMALLOC(unsigned char, ldns_key_hmac_size(k));
 			if (!bin) {
 				return NULL;
 			}


Index: ldns.spec
===================================================================
RCS file: /cvs/extras/rpms/ldns/devel/ldns.spec,v
retrieving revision 1.41
retrieving revision 1.42
diff -u -r1.41 -r1.42
--- ldns.spec	16 Apr 2009 19:59:19 -0000	1.41
+++ ldns.spec	16 Apr 2009 20:20:36 -0000	1.42
@@ -1,7 +1,7 @@
 Summary: Lowlevel DNS(SEC) library with API
 Name: ldns
 Version: 1.5.1
-Release: 3%{?dist}
+Release: 4%{?dist}
 License: BSD
 Url: http://www.nlnetlabs.nl/%{name}/
 Source: http://www.nlnetlabs.nl/downloads/%{name}-%{version}.tar.gz
@@ -89,7 +89,7 @@
 %postun -p /sbin/ldconfig
 
 %changelog
-* Thu Apr 16 2009 Paul Wouters <paul at xelerance.com> - 1.5.1-3
+* Thu Apr 16 2009 Paul Wouters <paul at xelerance.com> - 1.5.1-4
 - Memory management bug when generating a sha256 key, see:
   https://bugzilla.redhat.com/show_bug.cgi?id=493953
 




More information about the fedora-extras-commits mailing list