From f2fbba6b33a2b467a6449e66695666d37f8c05e7 Mon Sep 17 00:00:00 2001 From: Jiri Skala Date: May 04 2009 13:06:18 +0000 Subject: - fix #498832 - bgpd crashes on as paths containing more 6 digit as numbers --- diff --git a/quagga-0.99.11-asn32.patch b/quagga-0.99.11-asn32.patch new file mode 100644 index 0000000..cbdf9ff --- /dev/null +++ b/quagga-0.99.11-asn32.patch @@ -0,0 +1,12 @@ +diff -up quagga-0.99.11/bgpd/bgp_aspath.c.asn32 quagga-0.99.11/bgpd/bgp_aspath.c +--- quagga-0.99.11/bgpd/bgp_aspath.c.asn32 2009-05-04 14:52:13.000000000 +0200 ++++ quagga-0.99.11/bgpd/bgp_aspath.c 2009-05-04 14:52:24.000000000 +0200 +@@ -549,7 +549,7 @@ aspath_make_str_count (struct aspath *as + * With 32bit ASNs, this range will increase, but only worth changing + * once there are significant numbers of ASN >= 100000 + */ +-#define ASN_STR_LEN (5 + 1) ++#define ASN_STR_LEN (10 + 1) + str_size = MAX (assegment_count_asns (seg, 0) * ASN_STR_LEN + 2 + 1, + ASPATH_STR_DEFAULT_LEN); + str_buf = XMALLOC (MTYPE_AS_STR, str_size); diff --git a/quagga.spec b/quagga.spec index f293e96..b04c048 100644 --- a/quagga.spec +++ b/quagga.spec @@ -39,8 +39,8 @@ Group: System Environment/Daemons Source0: http://www.quagga.net/download/%{name}-%{version}.tar.gz Source1: quagga-filter-perl-requires.sh Patch2: quagga-0.96.5-nostart.patch -#Patch6: quagga-0.98.5-pie.patch Patch7: quagga-0.99.9-initscript.patch +Patch8: quagga-0.99.11-asn32.patch URL: http://www.quagga.net %if %with_snmp @@ -93,11 +93,10 @@ developing OSPF-API and quagga applications. %prep %setup -q -#%patch0 -p1 -b .lib64 %patch2 -p1 -b .nostart # This creates a .diff file that we apply after configuring -#%patch6 -p1 %patch7 -p1 -b .initscript +%patch8 -p1 -b .asn32 %build # FC5+ automatic -fstack-protector-all switch @@ -348,6 +347,9 @@ rm -rf $RPM_BUILD_ROOT %endif %changelog +* Mon May 04 2009 Jiri Skala - 0.99.11-2 +- fix #498832 - bgpd crashes on as paths containing more 6 digit as numbers + * Wed Feb 25 2009 Fedora Release Engineering - 0:0.99.11-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild