]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Add tests for recently fixed crashes/buffer overflows.
authorGuy Harris <[email protected]>
Thu, 13 Nov 2014 11:07:04 +0000 (03:07 -0800)
committerGuy Harris <[email protected]>
Thu, 13 Nov 2014 11:07:43 +0000 (03:07 -0800)
tests/TESTLIST
tests/aodv-crash-v.out [new file with mode: 0644]
tests/aodv-crash.pcap [new file with mode: 0644]
tests/geonet-crash-v.out [new file with mode: 0644]
tests/geonet-crash.pcap [new file with mode: 0644]
tests/olsr-crash-v.out [new file with mode: 0644]
tests/olsr-crash.pcap [new file with mode: 0644]

index 094f0f2f6bc48ea779ca25fabef3cdc06512d561..2d71d80f971e83bd1e267cf9ea15858f67c45667 100644 (file)
@@ -260,3 +260,8 @@ aoe_1-v             AoE_Linux.pcap          aoe_1-v.out     -t -v
 
 # Geneve tests
 geneve-v       geneve.pcap             geneve-vv.out   -t -vv
+
+# crash tests
+aodv-crash     aodv-crash.pcap         aodv-crash-v.out        -t -v
+geonet-crash   geonet-crash.pcap       geonet-crash-v.out      -t -v
+olsr-crash     olsr-crash.pcap         olsr-crash-v.out        -t -v
diff --git a/tests/aodv-crash-v.out b/tests/aodv-crash-v.out
new file mode 100644 (file)
index 0000000..0bb70b4
--- /dev/null
@@ -0,0 +1,2 @@
+IP truncated-ip - 58880 bytes missing! (tos 0x0, ttl 64, id 62335, offset 0, flags [DF], proto UDP (17), length 58941, bad cksum 30c6 (->49c3)!)
+    10.1.1.104.654 > 10.2.2.2.3328:  aodv rerr  [items 0] [19192]:
diff --git a/tests/aodv-crash.pcap b/tests/aodv-crash.pcap
new file mode 100644 (file)
index 0000000..1877b3f
Binary files /dev/null and b/tests/aodv-crash.pcap differ
diff --git a/tests/geonet-crash-v.out b/tests/geonet-crash-v.out
new file mode 100644 (file)
index 0000000..4b7182d
--- /dev/null
@@ -0,0 +1 @@
+GeoNet src:07:07:07:07:07:07; v:12 NH:6-Unknown HT:5-1-TopoScopeBcast-MH HopLim:7 Payload:1799 GN_ADDR:ef:06:07:35:97:00:24:8c lat:4521984 lon:1039368000 Malformed (small) 
diff --git a/tests/geonet-crash.pcap b/tests/geonet-crash.pcap
new file mode 100644 (file)
index 0000000..79e0f94
Binary files /dev/null and b/tests/geonet-crash.pcap differ
diff --git a/tests/olsr-crash-v.out b/tests/olsr-crash-v.out
new file mode 100644 (file)
index 0000000..edfb067
--- /dev/null
@@ -0,0 +1,4 @@
+IP (tos 0x15,ECT(1), ttl 77, id 62335, offset 0, flags [DF], proto UDP (17), length 61, bad cksum 30c6 (->22af)!)
+    10.1.1.104.698 > 10.2.2.2.514: OLSRv4, seq 0x0202, length 33
+       TC Message (0x02), originator 2.2.2.2, ttl 2, hop 2
+         vtime 0.070s, msg-seq 0x0202, length 2 (invalid)
diff --git a/tests/olsr-crash.pcap b/tests/olsr-crash.pcap
new file mode 100644 (file)
index 0000000..0288b8e
Binary files /dev/null and b/tests/olsr-crash.pcap differ