aboutsummaryrefslogtreecommitdiff
path: root/fuzz/dictionaries
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2017-02-20 11:37:43 +0100
committerMarc André Tanner <mat@brain-dump.org>2017-02-20 12:20:39 +0100
commit6911290dbb577fb295e556da6fd7e4f5f7c81a8a (patch)
tree96c2f8d5581a7987c8b1f2b95392900a709c0e83 /fuzz/dictionaries
parentf2548fc882ec951d48193ca488c41061cf887971 (diff)
downloadvis-6911290dbb577fb295e556da6fd7e4f5f7c81a8a.tar.gz
vis-6911290dbb577fb295e556da6fd7e4f5f7c81a8a.tar.xz
test/fuzz: add fuzzing infrastructure
For now we use the american fuzzy lop in the future we might also add libFuzzer support.
Diffstat (limited to 'fuzz/dictionaries')
-rw-r--r--fuzz/dictionaries/text-fuzzer.dict20
1 files changed, 20 insertions, 0 deletions
diff --git a/fuzz/dictionaries/text-fuzzer.dict b/fuzz/dictionaries/text-fuzzer.dict
new file mode 100644
index 0000000..389141b
--- /dev/null
+++ b/fuzz/dictionaries/text-fuzzer.dict
@@ -0,0 +1,20 @@
+# AFL dictionary for text-fuzzer
+#
+# Not sure whether it makes sense to specify a dictionary,
+# the syntax is quite simple?
+#
+cmd_earlier="-"
+cmd_later="+"
+cmd_mark_get="?"
+# cmd_mark_set="= 0"
+cmd_mark_set="="
+cmd_size="#"
+# cmd_delete="d 0 1"
+cmd_delete="d"
+# cmd_insert="i 0 text"
+cmd_insert="i"
+cmd_print="p"
+cmd_quit="q"
+cmd_redo="r"
+cmd_snapshot="s"
+cmd_undo="u"