[quagga/f16] fixes #746886 - severe memory leak in quagga 0.99.{19, 20}
Jiri Skala
jskala at fedoraproject.org
Tue Oct 18 08:01:48 UTC 2011
commit 8fc365913b18f84a07d6d1aaca6b3f444a3fd345
Author: Jiri Skala <jskala at redhat.com>
Date: Tue Oct 18 10:01:44 2011 +0200
fixes #746886 - severe memory leak in quagga 0.99.{19,20}
quagga-0.99.20-memleak.patch | 12 ++++++++++++
quagga.spec | 7 ++++++-
2 files changed, 18 insertions(+), 1 deletions(-)
---
diff --git a/quagga-0.99.20-memleak.patch b/quagga-0.99.20-memleak.patch
new file mode 100644
index 0000000..80d0ee7
--- /dev/null
+++ b/quagga-0.99.20-memleak.patch
@@ -0,0 +1,12 @@
+diff --git a/bgpd/bgp_attr.c b/bgpd/bgp_attr.c
+index d43c104..3908e72 100644
+--- a/bgpd/bgp_attr.c
++++ b/bgpd/bgp_attr.c
+@@ -675,6 +675,7 @@ bgp_attr_unintern (struct attr **attr)
+ }
+
+ bgp_attr_unintern_sub (&tmp);
++ bgp_attr_extra_free (&tmp);
+ }
+
+ void
diff --git a/quagga.spec b/quagga.spec
index 481d8e0..1350e29 100644
--- a/quagga.spec
+++ b/quagga.spec
@@ -32,7 +32,7 @@
Summary: Routing daemon
Name: quagga
Version: 0.99.20
-Release: 1%{?dist}
+Release: 2%{?dist}
License: GPLv2+
Group: System Environment/Daemons
Source0: http://www.quagga.net/download/%{name}-%{version}.tar.gz
@@ -46,6 +46,7 @@ Patch101: quagga-0.99.15-perl_pth.patch
Patch102: quagga-0.99.16-posix.patch
Patch103: quagga-0.99.16-man.patch
Patch104: quagga-0.99.18-sysd.patch
+Patch105: quagga-0.99.20-memleak.patch
URL: http://www.quagga.net
%if %with_snmp
@@ -124,6 +125,7 @@ developing OSPF-API and quagga applications.
%patch102 -p1 -b .posix
%patch103 -p1 -b .man
%patch104 -p1 -b .sysd
+%patch105 -p1 -b .memleak
%build
# FC5+ automatic -fstack-protector-all switch
@@ -404,6 +406,9 @@ rm -rf $RPM_BUILD_ROOT
%endif
%changelog
+* Tue Oct 18 2011 Jiri Skala <jskala at redhat.com> - 0.99.20-2
+- fixes #746886 - severe memory leak in quagga 0.99.{19,20}
+
* Fri Sep 30 2011 Jiri Skala <jskala at redhat.com> - 0.99.20-1
- updated to latest upstream version 0.99.20
- fixes #741343 - CVE-2011-3325 corrected fix
More information about the scm-commits
mailing list