From: Bhargava Shastry <bshas...@sect.tu-berlin.de>

This patch adds a fuzzing dictionary, and a fuzzer
 config file for  the ODP parser oss-fuzz target.

Signed-off-by: Bhargava Shastry <bshas...@sect.tu-berlin.de>
---
 tests/oss-fuzz/config/odp.dict           | 170 +++++++++++++++++++++++
 tests/oss-fuzz/config/odp_target.options |   3 +
 2 files changed, 173 insertions(+)
 create mode 100644 tests/oss-fuzz/config/odp.dict
 create mode 100644 tests/oss-fuzz/config/odp_target.options

diff --git a/tests/oss-fuzz/config/odp.dict b/tests/oss-fuzz/config/odp.dict
new file mode 100644
index 000000000..a9bdd3e99
--- /dev/null
+++ b/tests/oss-fuzz/config/odp.dict
@@ -0,0 +1,170 @@
+"("
+")"
+","
+"/0x"
+"0x"
+": "
+"="
+"=r"
+"action"
+"arp"
+"bfd"
+"bos"
+"c1"
+"c2"
+"c3"
+"c4"
+"cc"
+"cfi"
+"cfm"
+"class"
+"clone"
+"code"
+"commit,"
+"crit,"
+"csum"
+"ct"
+"ct(error)"
+"ct_clear"
+"ct_label"
+"ct_mark"
+"ct_state"
+"ct_tuple4"
+"ct_tuple6"
+"ct_zone"
+"dir"
+"dl_type"
+"dnat"
+"dp_hash"
+"drop"
+"dst"
+"dst_port"
+"egress"
+"encap"
+"error"
+"erspan"
+"erspan(ver=1,sid=0x,dir=,idx=0x)"
+"est"
+"eth"
+"eth_type"
+"eth_type(0/)"
+"first"
+"flags"
+"force_commit,"
+"frag"
+"gbp("
+"geneve"
+"gre((flags=0x,proto=0x)"
+"hash,"
+"helper"
+"hlimit"
+"hwid"
+"icmp"
+"icmpv6"
+"id"
+"idx="
+"in_port"
+"ingress"
+"inv"
+"ip6erspan"
+"ipfix(output_port="
+"ipv4"
+"ipv6"
+"ipv6_dst"
+"ipv6_src"
+"l4()"
+"label"
+"lacp"
+"later"
+"len"
+"lldp"
+"mark=/,"
+"match"
+"md2"
+"mdtype"
+"meter()"
+"mpls"
+"nat"
+"nd"
+"new"
+"no"
+"np"
+"ns"
+"nsh"
+"oam,"
+"op"
+"options("
+"out_port("
+"packet_type"
+"pcp="
+"persistent,"
+"pop_eth"
+"pop_mpls(eth_type=0x)"
+"pop_nsh()"
+"pop_vlan"
+"proto"
+"push_eth(src=:::::,dst=:::::,type=)"
+"push_mpls("
+"push_nsh("
+"push_vlan("
+"push_vlan(tpid=,vid=,pcp=,cfi=)"
+"random,"
+"recirc()"
+"recirc_id"
+"rel"
+"rpl"
+"sFlow(vid=,pcp=,output=)"
+"sample"
+"sctp"
+"seq=0x"
+"set("
+"set(nsh("
+"sha"
+"si"
+"sip"
+"skb_mark"
+"skb_priority"
+"sll"
+"slow_path"
+"snat"
+"spi"
+"src"
+"src_port"
+"stp"
+"sym_l4()"
+"target"
+"tc="
+"tclass"
+"tcp"
+"tcp_flags"
+"tha"
+"tip"
+"tll"
+"tnl_pop("
+"tnl_push(tnl_port("
+"too_little"
+"too_much"
+"tos"
+"tp_dst"
+"tp_src"
+"tpid=0x"
+"trk"
+"trunc()"
+"ttl"
+"tun_id"
+"tunnel"
+"tunnel_out_port"
+"type"
+"udp"
+"unspec"
+"userdata"
+"userspace("
+"userspace(error)"
+"userspace(pid"
+"ver"
+"vid"
+"vlan"
+"vxlan"
+"vxlan(flags=0x,vni=0x)"
+"vxlan(gbp("
+"zone"
diff --git a/tests/oss-fuzz/config/odp_target.options 
b/tests/oss-fuzz/config/odp_target.options
new file mode 100644
index 000000000..41821b8c1
--- /dev/null
+++ b/tests/oss-fuzz/config/odp_target.options
@@ -0,0 +1,3 @@
+[libfuzzer]
+close_fd_mask = 3
+dict = odp.dict
-- 
2.17.1

_______________________________________________
dev mailing list
d...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to