added patch to fix memory corruption in ldns-keygen
This commit is contained in:
parent
ae318f560e
commit
ee1b573e44
13
ldns-keygen-hmac-memory.patch
Normal file
13
ldns-keygen-hmac-memory.patch
Normal file
@ -0,0 +1,13 @@
|
||||
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;
|
||||
}
|
||||
@ -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 @@ rm -rf %{buildroot}
|
||||
%postun -p /sbin/ldconfig
|
||||
|
||||
%changelog
|
||||
* Thu Apr 16 2009 Paul Wouters <paul@xelerance.com> - 1.5.1-3
|
||||
* Thu Apr 16 2009 Paul Wouters <paul@xelerance.com> - 1.5.1-4
|
||||
- Memory management bug when generating a sha256 key, see:
|
||||
https://bugzilla.redhat.com/show_bug.cgi?id=493953
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user