Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/jangernert/FeedReader.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrendan Long <self@brendanlong.com>2018-08-30 02:32:09 +0300
committerBrendan Long <self@brendanlong.com>2018-08-30 02:35:12 +0300
commitb797e10131fbe9ce3bb1c9ca3a5d769d951f6a9f (patch)
tree2301f1d4646576019f532ec2c12fb10cabb014e7 /libraries
parent9153e55bd506af2ee2949d75d9ecc460267b6c62 (diff)
htmlclean: Add back the fuzz test inputs
Diffstat (limited to 'libraries')
-rw-r--r--libraries/htmlclean/dictionaries/xml.dict72
-rw-r--r--libraries/htmlclean/inputs/test11
-rw-r--r--libraries/htmlclean/inputs/test21
-rw-r--r--libraries/htmlclean/inputs/test31
-rw-r--r--libraries/htmlclean/inputs/test41
-rw-r--r--libraries/htmlclean/inputs/test51
-rw-r--r--libraries/htmlclean/inputs/test61
7 files changed, 78 insertions, 0 deletions
diff --git a/libraries/htmlclean/dictionaries/xml.dict b/libraries/htmlclean/dictionaries/xml.dict
new file mode 100644
index 00000000..8127aa28
--- /dev/null
+++ b/libraries/htmlclean/dictionaries/xml.dict
@@ -0,0 +1,72 @@
+#
+# AFL dictionary for XML
+# ----------------------
+#
+# Several basic syntax elements and attributes, modeled on libxml2.
+#
+# Created by Michal Zalewski <lcamtuf@google.com>
+#
+
+attr_encoding=" encoding=\"1\""
+attr_generic=" a=\"1\""
+attr_href=" href=\"1\""
+attr_standalone=" standalone=\"no\""
+attr_version=" version=\"1\""
+attr_xml_base=" xml:base=\"1\""
+attr_xml_id=" xml:id=\"1\""
+attr_xml_lang=" xml:lang=\"1\""
+attr_xml_space=" xml:space=\"1\""
+attr_xmlns=" xmlns=\"1\""
+
+entity_builtin="&lt;"
+entity_decimal="&#1;"
+entity_external="&a;"
+entity_hex="&#x1;"
+
+string_any="ANY"
+string_brackets="[]"
+string_cdata="CDATA"
+string_col_fallback=":fallback"
+string_col_generic=":a"
+string_col_include=":include"
+string_dashes="--"
+string_empty="EMPTY"
+string_empty_dblquotes="\"\""
+string_empty_quotes="''"
+string_entities="ENTITIES"
+string_entity="ENTITY"
+string_fixed="#FIXED"
+string_id="ID"
+string_idref="IDREF"
+string_idrefs="IDREFS"
+string_implied="#IMPLIED"
+string_nmtoken="NMTOKEN"
+string_nmtokens="NMTOKENS"
+string_notation="NOTATION"
+string_parentheses="()"
+string_pcdata="#PCDATA"
+string_percent="%a"
+string_public="PUBLIC"
+string_required="#REQUIRED"
+string_schema=":schema"
+string_system="SYSTEM"
+string_ucs4="UCS-4"
+string_utf16="UTF-16"
+string_utf8="UTF-8"
+string_xmlns="xmlns:"
+
+tag_attlist="<!ATTLIST"
+tag_cdata="<![CDATA["
+tag_close="</a>"
+tag_doctype="<!DOCTYPE"
+tag_element="<!ELEMENT"
+tag_entity="<!ENTITY"
+tag_ignore="<![IGNORE["
+tag_include="<![INCLUDE["
+tag_notation="<!NOTATION"
+tag_open="<a>"
+tag_open_close="<a />"
+tag_open_exclamation="<!"
+tag_open_q="<?"
+tag_sq2_close="]]>"
+tag_xml_q="<?xml?>"
diff --git a/libraries/htmlclean/inputs/test1 b/libraries/htmlclean/inputs/test1
new file mode 100644
index 00000000..ce013625
--- /dev/null
+++ b/libraries/htmlclean/inputs/test1
@@ -0,0 +1 @@
+hello
diff --git a/libraries/htmlclean/inputs/test2 b/libraries/htmlclean/inputs/test2
new file mode 100644
index 00000000..cda8fd18
--- /dev/null
+++ b/libraries/htmlclean/inputs/test2
@@ -0,0 +1 @@
+<?xml version="1.0"?><title>&#8217;re almost home&#8230;</title>
diff --git a/libraries/htmlclean/inputs/test3 b/libraries/htmlclean/inputs/test3
new file mode 100644
index 00000000..4bd7e7a4
--- /dev/null
+++ b/libraries/htmlclean/inputs/test3
@@ -0,0 +1 @@
+&
diff --git a/libraries/htmlclean/inputs/test4 b/libraries/htmlclean/inputs/test4
new file mode 100644
index 00000000..93184183
--- /dev/null
+++ b/libraries/htmlclean/inputs/test4
@@ -0,0 +1 @@
+<
diff --git a/libraries/htmlclean/inputs/test5 b/libraries/htmlclean/inputs/test5
new file mode 100644
index 00000000..942e5bf5
--- /dev/null
+++ b/libraries/htmlclean/inputs/test5
@@ -0,0 +1 @@
+<r ý½½½½½ \ No newline at end of file
diff --git a/libraries/htmlclean/inputs/test6 b/libraries/htmlclean/inputs/test6
new file mode 100644
index 00000000..bd0257ae
--- /dev/null
+++ b/libraries/htmlclean/inputs/test6
@@ -0,0 +1 @@
+<ý½¿½½½ \ No newline at end of file