aboutsummaryrefslogtreecommitdiff
path: root/tests/ossfuzz/config
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2018-11-02 20:18:45 +0200
committerLasse Collin <lasse.collin@tukaani.org>2018-11-02 20:40:14 +0200
commit106d1a663d4ba42b63231caa289f531548df81c1 (patch)
treea2af37c8a4e454b2acccd19615b804f4cb9a1830 /tests/ossfuzz/config
parentliblzma: Don't verify header CRC32s if building for fuzz testing. (diff)
downloadxz-106d1a663d4ba42b63231caa289f531548df81c1.tar.xz
Tests: Add a fuzz test program and a config file for OSS-Fuzz.
Thanks to Bhargava Shastry and Github user pdknsk.
Diffstat (limited to 'tests/ossfuzz/config')
-rw-r--r--tests/ossfuzz/config/fuzz.dict2
-rw-r--r--tests/ossfuzz/config/fuzz.options2
2 files changed, 4 insertions, 0 deletions
diff --git a/tests/ossfuzz/config/fuzz.dict b/tests/ossfuzz/config/fuzz.dict
new file mode 100644
index 00000000..932d67c2
--- /dev/null
+++ b/tests/ossfuzz/config/fuzz.dict
@@ -0,0 +1,2 @@
+"\xFD7zXZ\x00"
+"YZ"
diff --git a/tests/ossfuzz/config/fuzz.options b/tests/ossfuzz/config/fuzz.options
new file mode 100644
index 00000000..d59dfc13
--- /dev/null
+++ b/tests/ossfuzz/config/fuzz.options
@@ -0,0 +1,2 @@
+[libfuzzer]
+dict = fuzz.dict