]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Add a test file for a previous fix
authorFrancois-Xavier Le Bail <[email protected]>
Wed, 9 Dec 2015 16:30:35 +0000 (17:30 +0100)
committerFrancois-Xavier Le Bail <[email protected]>
Wed, 18 Jan 2017 08:16:39 +0000 (09:16 +0100)
Fix was: "OSPF: Fix a segmentation fault"
(commit 046f10da386cce5ecbb36d140785cf08669fc1d6)

tests/TESTLIST
tests/ospf2-seg-fault-1-v.out [new file with mode: 0644]
tests/ospf2-seg-fault-1.pcap [new file with mode: 0644]

index 0c7b18b6a198b57c3599d09e528a458875fb2f74..e84551773a71240b8315b7e19e3c06ad4841df9f 100644 (file)
@@ -62,6 +62,8 @@ ospf3_auth-vv ospf3_auth.pcap                         ospf3_auth-vv.out       -t -v -v
 ospf3_bc-vv    OSPFv3_broadcast_adjacency.pcap         ospf3_bc-vv.out         -t -v -v
 ospf3_mp-vv    OSPFv3_multipoint_adjacencies.pcap      ospf3_mp-vv.out         -t -v -v
 ospf3_nbma-vv  OSPFv3_NBMA_adjacencies.pcap            ospf3_nbma-vv.out       -t -v -v
+# fuzzed pcap
+ospf2-seg-fault-1-v  ospf2-seg-fault-1.pcap  ospf2-seg-fault-1-v.out  -t -v
 
 # IKEv2 tests
 ikev2four      ikev2four.pcap          ikev2four.out   -t -v
diff --git a/tests/ospf2-seg-fault-1-v.out b/tests/ospf2-seg-fault-1-v.out
new file mode 100644 (file)
index 0000000..7b06bb1
--- /dev/null
@@ -0,0 +1,9 @@
+IP (tos 0xc0, ttl 1, id 4106, offset 0, flags [none], proto OSPF (89), length 172)
+    40.35.1.2 > 224.0.0.5: OSPFv2, LS-Update, length 152
+       Router-ID 10.255.245.35, Backbone Area, Authentication Type: none (0), 1 LSA
+         LSA #1
+         Advertising Router 10.255.245.37, seq 0x80000002, age 9s, length 104
+           Area Local Opaque LSA (10), Opaque-Type Traffic Engineering LSA (1), Opaque-ID 9
+           Options: [External]
+           Link TLV (2), length: 100
+             Bandwidth Constraints subTLV (17), length: 1 < 4 (invalid)
diff --git a/tests/ospf2-seg-fault-1.pcap b/tests/ospf2-seg-fault-1.pcap
new file mode 100644 (file)
index 0000000..269c6df
Binary files /dev/null and b/tests/ospf2-seg-fault-1.pcap differ