* [dlplibs] merge 2 fuzzers for Lotus formats

The difference was mostly nominal anyway as all versions are parsed by
the same code.

* [dlplibs] add corpus for MS Multiplan fuzzer

* [dlplibs] move abw.dict to the project
This commit is contained in:
David Tardon 2018-01-18 19:49:11 +01:00 committed by Abhishek Arya
parent daa994ebe1
commit bbe2d4ef9a
3 changed files with 3 additions and 198 deletions

View File

@ -63,7 +63,6 @@ RUN wget -q --show-progress --progress=bar:force \
https://sourceforge.net/projects/libmwaw/files/corpus/mswrdfuzzer_seed_corpus.zip \
https://sourceforge.net/projects/libmwaw/files/corpus/mswksfuzzer_seed_corpus.zip \
https://sourceforge.net/projects/libwps/files/corpus/123fuzzer_seed_corpus.zip \
https://sourceforge.net/projects/libwps/files/corpus/wkfuzzer_seed_corpus.zip \
https://sourceforge.net/projects/libwps/files/corpus/wqfuzzer_seed_corpus.zip \
https://sourceforge.net/projects/libebook/files/corpus/pdbfuzzer_seed_corpus.zip \
https://sourceforge.net/projects/libmwaw/files/corpus/beaglewksfuzzer_seed_corpus.zip \
@ -98,6 +97,8 @@ RUN wget -q --show-progress --progress=bar:force \
https://sourceforge.net/projects/libmwaw/files/corpus/writenowfuzzer_seed_corpus.zip \
https://sourceforge.net/projects/libmwaw/files/corpus/writerplsfuzzer_seed_corpus.zip \
https://sourceforge.net/projects/libmwaw/files/corpus/zwrtfuzzer_seed_corpus.zip \
https://sourceforge.net/projects/libmwaw/files/corpus/multiplanfuzzer_seed_corpus.zip \
https://sourceforge.net/projects/libwps/files/corpus/mpfuzzer_seed_corpus.zip \
-P $SRC
# clone sources
RUN git clone --depth 1 git://git.code.sf.net/p/libwpd/librevenge
@ -117,4 +118,4 @@ RUN git clone --depth 1 git://gerrit.libreoffice.org/libabw
RUN git clone --depth 1 git://gerrit.libreoffice.org/libetonyek
RUN git clone --depth 1 git://gerrit.libreoffice.org/libqxp
WORKDIR $SRC
COPY build.sh abw.dict *.options *.patch $SRC/
COPY build.sh *.options *.patch $SRC/

View File

@ -1,195 +0,0 @@
#
# 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;"
# keywords
"ANY"
"ATTLIST"
"CDATA"
"DOCTYPE"
"ELEMENT"
"EMPTY"
"ENTITIES"
"ENTITY"
"FIXED"
"ID"
"IDREF"
"IDREFS"
"IGNORE"
"IMPLIED"
"INCLUDE"
"NDATA"
"NMTOKEN"
"NMTOKENS"
"NOTATION"
"PCDATA"
"PUBLIC"
"REQUIRED"
"SYSTEM"
# Various tag parts
"<"
">"
"/>"
"</"
"<?"
"?>"
"<!"
"!>"
"[]"
"]]"
"<![CDATA["
"<![CDATA[]]>"
"\"\""
"''"
"=\"\""
"=''"
# DTD
"<!ATTLIST"
"<!DOCTYPE"
"<!ELEMENT"
"<!ENTITY"
"<![IGNORE["
"<![INCLUDE["
"<!NOTATION"
"#CDATA"
"#FIXED"
"#IMPLIED"
"#PCDATA"
"#REQUIRED"
# Encodings
"ISO-8859-1"
"US-ASCII"
"UTF-8"
"UTF-16"
"UTF-16BE"
"UTF-16LE"
# Namespaces and schemas
"xmlns"
"xmlns:"
"xmlns:xhtml=\"http://www.w3.org/1999/xhtml\""
"xmlns:xml=\"http://www.w3.org/XML/1998/namespace\""
"xmlns:xmlns=\"http://www.w3.org/2000/xmlns\""
"xmlns:awml=\"http://www.abisource.com/awml.dtd\""
string_col_fallback=":fallback"
string_col_generic=":a"
string_col_include=":include"
string_dashes="--"
string_parentheses="()"
string_percent="%a"
string_schema=":schema"
string_ucs4="UCS-4"
tag_close="</a>"
tag_open="<a>"
tag_open_close="<a />"
# Tag names
"a"
"abiword"
"awml"
"bookmark"
"br"
"c"
"cbr"
"cell"
"d"
"data"
"endnote"
"f"
"field"
"foot"
"frame"
"history"
"i"
"ignoredwords"
"image"
"iw"
"l"
"lists"
"m"
"metadata"
"p"
"pagesize"
"pbr"
"revisions"
"s"
"section"
"styles"
"table"
"version"
# Document properties
"document-endnote-initial"
"document-endnote-place-enddoc"
"document-endnote-place-endsection"
"document-endnote-restart-section"
"document-endnote-type"
"document-footnote-initial"
"document-footnote-restart-page"
"document-footnote-restart-section"
"document-footnote-type"
"dom-dir"
"lang"
"ltr"
"numeric"
"rtl"
# Para style properties
"ascent"
"descent"
"display"
"height"
"homogeneous"
"inline"
"list-style"
"width"
# Text style properties
"bgcolor"
"color"
"font-family"
"font-size"
"font-stretch"
"font-style"
"font-variant"
"font-weight"
"left"
"line-height"
"margin-bottom"
"margin-left"
"margin-right"
"margin-top"
"none"
"normal"
"right"
"text-align"
"text-decoration"
"text-indent"
"text-position"
"transparent"
"widows"

View File

@ -189,4 +189,3 @@ cp */src/fuzz/*fuzzer $OUT
cp */src/fuzz/*.dict $OUT
cp *_seed_corpus.zip $OUT
cp *.options $OUT
cp *.dict $OUT