summaryrefslogtreecommitdiff
path: root/test/afl_test_cases
diff options
context:
space:
mode:
authorNick Wellnhofer <wellnhofer@aevum.de>2015-02-21 21:05:10 +0100
committerNick Wellnhofer <wellnhofer@aevum.de>2015-02-23 17:24:58 +0100
commit573a3dc076cfecb2337cca118bdbd7c4452b1ec6 (patch)
treeb21f648deea3fc347654680f39a0f00788e72335 /test/afl_test_cases
parent1533c8fbad3acc48e6a2f0a1e305aeb5932b3bbd (diff)
Add Makefile target to fuzz with AFL
Also add a compact test case. As far as I understand, a good test case should exercise many code paths while being as small as possible. There's probably still room for improvement. The variable $AFL_PATH must point to the directory containing the AFL binaries. It can be set as an environment variable or passed to make on the command line.
Diffstat (limited to 'test/afl_test_cases')
-rw-r--r--test/afl_test_cases/test.md36
1 files changed, 36 insertions, 0 deletions
diff --git a/test/afl_test_cases/test.md b/test/afl_test_cases/test.md
new file mode 100644
index 0000000..27eee00
--- /dev/null
+++ b/test/afl_test_cases/test.md
@@ -0,0 +1,36 @@
+# H1
+
+H2
+--
+
+t ☺
+*b* **em** `c`
+&ge;\&\
+\_e\_
+
+4) I1
+
+5) I2
+ > [l](/u "t")
+ >
+ > - [f]
+ > - ![a](/u "t")
+ >
+ >> <ftp://hh>
+ >> <u@hh>
+
+~~~ l☺
+cb
+~~~
+
+ c1
+ c2
+
+***
+
+<div>
+<b>x</b>
+</div>
+
+[f]: /u "t"
+