Bug 498832 - bgpd crashes on as paths containing more 6 digit as numbers
Summary: bgpd crashes on as paths containing more 6 digit as numbers
Keywords:
Status: CLOSED DUPLICATE of bug 499033
Alias: None
Product: Fedora
Classification: Fedora
Component: quagga
Version: 10
Hardware: All
OS: Linux
low
urgent
Target Milestone: ---
Assignee: Jiri Skala
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-05-03 18:42 UTC by Dušan Hokův
Modified: 2014-11-09 22:31 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2009-05-04 13:46:28 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Dušan Hokův 2009-05-03 18:42:51 UTC
Description of problem:
bgpd crashes on as paths containing more 6 digit as numbers

Version-Release number of selected component (if applicable):
0.99.11

How reproducible:
use bgpd as border router

Steps to Reproduce:
1.run bgpd
2.import prefixes
3.
  
Actual results:
crash always

Expected results:
run

Additional info:
bug is also in quagga bugzilla:

http://bugzilla.quagga.net/show_bug.cgi?id=500

There is also patch:

--- quagga-0.99.11-orig/bgpd/bgp_aspath.c	2008-09-05 17:27:26.000000000 +0300
+++ quagga-0.99.11/bgpd/bgp_aspath.c	2009-05-03 19:06:55.000000000 +0300
@@ -549,7 +549,7 @@
    * 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);

Comment 1 Jiri Skala 2009-05-05 14:38:24 UTC
The bug duplicates BZ #499033. There are remarks about side effects of this short hack (negative values). I don't see it fixed completely but the patch in the twins bug is a bit strange.

*** This bug has been marked as a duplicate of bug 499033 ***


Note You need to log in before you can comment on or make changes to this bug.