summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOneric <oneric@oneric.stub>2022-05-14 22:49:03 +0200
committerOneric <oneric@oneric.stub>2022-07-03 16:19:09 +0200
commit83a700e5c72babc0233f07a249837627f3c8c51f (patch)
tree2fad56d4ca71fb4c034925ebddfc74e2406e4253
parent9987eef44384b368670d962fca57b5994b216499 (diff)
downloadlibass-83a700e5c72babc0233f07a249837627f3c8c51f.tar.bz2
libass-83a700e5c72babc0233f07a249837627f3c8c51f.tar.xz
fuzz: add dictionary for fuzzing engines
OSS-Fuzz already has such a dictionary since the original addition, but this dictionary is missing some active sequences, has more fontnames mixed in, some duplicates with eg only a leading backslash removed and isn't organised. Created a new more complete and organised dictionary.
-rw-r--r--fuzz/ass.dict191
1 files changed, 191 insertions, 0 deletions
diff --git a/fuzz/ass.dict b/fuzz/ass.dict
new file mode 100644
index 0000000..2030a22
--- /dev/null
+++ b/fuzz/ass.dict
@@ -0,0 +1,191 @@
+# SPDX-License-Identifier: CC0-1.0
+#
+# Keywords for dictionary-assisted ASS fuzzing
+# For use with AFL++'s -x and libfuzzer's -dict option
+#
+# Syntax:
+# Lines starting with # are ignored.
+# Keywords are listed as name="keyword", with the alphanumeric
+# identifier name follooed by = being optional.
+# Inside the quotes " and \ must be escaped by \" and \\ respectively
+# and non-printable characters must be escaped as \x<hex>.
+
+# Some common font names
+"Arial"
+"DejaVu Sans"
+
+# Various common terminals
+"yes"
+"no"
+"0x"
+"&H"
+";"
+","
+"\x0a"
+"\x0d\x0a"
+"+"
+"-"
+":"
+
+# Sections
+"[Script Info]"
+"[Fonts]"
+"[V4 Styles]"
+"[V4+ Styles]"
+"[V4++ Styles]"
+"[Events]"
+
+# Script Info Headers
+"ScriptType"
+"PlayResX"
+"PlayResY"
+"Timer"
+"WrapStyle"
+"ScaledBorderAndShadow"
+"YCbCr Matrix"
+"Kerning"
+"Language"
+## Interesting Script Info Header Values
+"v4.00"
+"v4.00+"
+"v4.00++"
+"none"
+"tv.601"
+"pc.601"
+"tv.709"
+"pc.709"
+"tv.240m"
+"pc.240m"
+"tv.fcc"
+"pc.fcc"
+
+# Fonts Section
+"fontname:"
+
+# Styles Section
+"Style"
+"Format: "
+"Name"
+"FontName"
+"FontSize"
+"PrimaryColour"
+"SecondaryColour"
+"OutlineColour"
+"BackColour"
+"Bold"
+"Italic"
+"Underline"
+"StrikeOut"
+"ScaleX"
+"ScaleY"
+"Spacing"
+"Angle"
+"BorderStyle"
+"Outline"
+"Shadow"
+"Alignment"
+"MarginL"
+"MarginR"
+"MarginV"
+"MarginT"
+"MarginB"
+"Encoding"
+"RelativeTo"
+"TertiaryColour"
+"AlphaLevel"
+
+# Events Section
+## Format Items (only those not already present in the Styles list)
+"Layer"
+"Marked"
+"Text"
+"Start"
+"End"
+"Actor"
+"Effect"
+## Events
+"Comment:"
+"Dialogue:"
+## Effects
+"Karaoke;"
+"Scroll up;"
+"Scroll down;"
+"Banner;"
+
+# Event Text
+## In-Text Escapes (with libass extensions"
+"\\h"
+"\\N"
+"\\n"
+"\\{"
+"\\}"
+
+## Override Commands
+"{"
+"}"
+"("
+")"
+### Non-Animateable Commands
+"\\fsc"
+"\\fn"
+"\\r"
+"\\b"
+"\\i"
+"\\kf"
+"\\K"
+"\\ko"
+"\\kt"
+"\\k"
+"\\s"
+"\\u"
+"\\fe"
+"\\an"
+"\\a"
+"\\pbo"
+"\\p"
+"\\move"
+"\\pos"
+"\\fad"
+"\\fade"
+"\\org"
+"\\t"
+### Animateable Commands
+"\\bord"
+"\\xbord"
+"\\ybord"
+"\\shad"
+"\\xshad"
+"\\yshad"
+"\\be"
+"\\blur"
+"\\fscx"
+"\\fscy"
+"\\frx"
+"\\fry"
+"\\frz"
+"\\fr"
+"\\fax"
+"\\fay"
+"\\fs"
+"\\fsp"
+"\\c"
+"\\1c"
+"\\2c"
+"\\3c"
+"\\4c"
+"\\alpha"
+"\\1a"
+"\\2a"
+"\\3a"
+"\\4a"
+"\\iclip"
+"\\clip"
+
+## Drawing Commands
+"m "
+"n "
+"l "
+"b "
+"s "
+"p "
+"c"