summaryrefslogtreecommitdiff
path: root/tests/data_fuzz_parse/doctype.xml
diff options
context:
space:
mode:
authorArseny Kapoulkine <arseny.kapoulkine@gmail.com>2015-03-13 00:18:30 -0700
committerArseny Kapoulkine <arseny.kapoulkine@gmail.com>2015-03-13 00:18:30 -0700
commit15fba1debca5498989048677ffda38758b2df984 (patch)
treed2891e531717681619f55e79fc5efa81b46822e2 /tests/data_fuzz_parse/doctype.xml
parent0542b1869b6970003caa954ebc5f1dea41d48032 (diff)
tests: Add support for afl-fuzz
With the current setup it successfully finds the (fixed) DOCTYPE buffer overrun in ~50 minutes (on a single core).
Diffstat (limited to 'tests/data_fuzz_parse/doctype.xml')
-rw-r--r--tests/data_fuzz_parse/doctype.xml1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/data_fuzz_parse/doctype.xml b/tests/data_fuzz_parse/doctype.xml
new file mode 100644
index 0000000..dd1831d
--- /dev/null
+++ b/tests/data_fuzz_parse/doctype.xml
@@ -0,0 +1 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <!DOCTYPE [ <!ELEMENT p (#PCDATA|emph)* > ]> <!DOCTYPE foo [ <![INCLUDE[<!ATTLIST foo bar CDATA #IMPLIED>]]> <![IGNORE[some junk]]> ]> <!DOCTYPE root [ <!ELEMENT a EMPTY> <!ATTLIST a attr1 CDATA "&ge1;"> <!--* GE reference in attr default before declaration *--> <!ENTITY ge1 "abcdef"> ]> <node/> \ No newline at end of file