mirror of
https://github.com/zeux/pugixml.git
synced 2024-12-25 20:14:10 +08:00
tests: Add fuzzing dictionaries
Hopefully this will allow for better fuzzing coverage
This commit is contained in:
parent
8c62fa9121
commit
ea544eb48b
2
Makefile
2
Makefile
@ -70,7 +70,7 @@ endif
|
||||
|
||||
fuzz_%: $(BUILD)/fuzz_%
|
||||
@mkdir -p build/$@
|
||||
$< build/$@ tests/data_$*
|
||||
$< build/$@ tests/data_$* -max_len=1024 -dict=tests/fuzz_$*.dict
|
||||
|
||||
clean:
|
||||
rm -rf $(BUILD)
|
||||
|
72
tests/fuzz_parse.dict
Normal file
72
tests/fuzz_parse.dict
Normal file
@ -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="<"
|
||||
entity_decimal=""
|
||||
entity_external="&a;"
|
||||
entity_hex=""
|
||||
|
||||
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?>"
|
72
tests/fuzz_xpath.dict
Normal file
72
tests/fuzz_xpath.dict
Normal file
@ -0,0 +1,72 @@
|
||||
"boolean"
|
||||
"count"
|
||||
"contains"
|
||||
"concat"
|
||||
"ceiling"
|
||||
"false"
|
||||
"floor"
|
||||
"id"
|
||||
"last"
|
||||
"lang"
|
||||
"local-name"
|
||||
"name"
|
||||
"namespace-uri"
|
||||
"normalize-space"
|
||||
"not"
|
||||
"number"
|
||||
"position"
|
||||
"round"
|
||||
"string"
|
||||
"string-length"
|
||||
"starts-with"
|
||||
"substring-before"
|
||||
"substring-after"
|
||||
"substring"
|
||||
"sum"
|
||||
"translate"
|
||||
"true"
|
||||
"ancestor"
|
||||
"ancestor-or-self"
|
||||
"attribute"
|
||||
"child"
|
||||
"descendant"
|
||||
"descendant-or-self"
|
||||
"following"
|
||||
"following-sibling"
|
||||
"namespace"
|
||||
"parent"
|
||||
"preceding"
|
||||
"preceding-sibling"
|
||||
"self"
|
||||
"comment"
|
||||
"node"
|
||||
"processing-instruction"
|
||||
"text"
|
||||
"or"
|
||||
"and"
|
||||
"div"
|
||||
"mod"
|
||||
">"
|
||||
">="
|
||||
"<"
|
||||
"<="
|
||||
"!"
|
||||
"!="
|
||||
"="
|
||||
"+"
|
||||
"-"
|
||||
"*"
|
||||
"|"
|
||||
"$"
|
||||
"("
|
||||
")"
|
||||
"["
|
||||
"]"
|
||||
","
|
||||
"//"
|
||||
"/"
|
||||
".."
|
||||
"."
|
||||
"@"
|
||||
"::"
|
||||
":"
|
Loading…
x
Reference in New Issue
Block a user