diff options
author | Paul Jakma <paul.jakma@sun.com> | 2008-02-23 17:57:03 +0100 |
---|---|---|
committer | Paul Jakma <paul.jakma@sun.com> | 2008-02-23 17:57:03 +0100 |
commit | d38e8d63fdfc0aefb78d0a51ffdf06d8b47993fd (patch) | |
tree | 314cffb6ac8013547e35a3fe223ed98f8d5a411d /tests | |
parent | [isisd] Bug #437: fix ssert caused by bad list management (diff) | |
download | frr-d38e8d63fdfc0aefb78d0a51ffdf06d8b47993fd.tar.xz frr-d38e8d63fdfc0aefb78d0a51ffdf06d8b47993fd.zip |
[tests:bgp] Further tests for 0 sized as_path segments
2008-02-23 Paul Jakma <paul.jakma@sun.com>
* aspath_test.c: Test for 0-ASN sequences that still have data.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/ChangeLog | 4 | ||||
-rw-r--r-- | tests/aspath_test.c | 18 |
2 files changed, 22 insertions, 0 deletions
diff --git a/tests/ChangeLog b/tests/ChangeLog index 16412bdea..098afb553 100644 --- a/tests/ChangeLog +++ b/tests/ChangeLog @@ -1,3 +1,7 @@ +2008-02-23 Paul Jakma <paul.jakma@sun.com> + + * aspath_test.c: Test for 0-ASN sequences that still have data. + 2007-12-22 Paul Jakma <paul.jakma@sun.com> * bgp_capability_test.c: Test for empty capabilities. diff --git a/tests/aspath_test.c b/tests/aspath_test.c index c12d07a59..fb504f317 100644 --- a/tests/aspath_test.c +++ b/tests/aspath_test.c @@ -402,6 +402,24 @@ static struct test_segment { "8466 3 52737 4096 3456 {7099,8153}", 6, 0, NOT_ALL_PRIVATE, 4096, 4, 8466 }, }, + { /* 25 */ + "zero-size overflow", + "#ASNs = 0, data = seq(8466 3 52737 4096 3456)", + { 0x2,0x0, 0x21,0x12, 0x00,0x03, 0xce,0x01, 0x10,0x00, 0x0d,0x80 }, + 12, + { "", "", + 0, 0, 0, 0, 0, 0 }, + }, + { /* 26 */ + "zero-size overflow + valid segment", + "seq(#AS=0:8466 3 52737),seq(4096 3456)", + { 0x2,0x0, 0x21,0x12, 0x00,0x03, 0xce,0x01, + 0x2,0x2, 0x10,0x00, 0x0d,0x80 }, + 14 + , + { "", "", + 0, 0, 0, 0, 0, 0 }, + }, { NULL, NULL, {0}, 0, { NULL, 0, 0 } } }; |