From f367728c4435670caf2e9cc5acad257e7766cc65 Mon Sep 17 00:00:00 2001 From: van Hauser Date: Tue, 28 May 2019 16:40:24 +0200 Subject: afl++ 2.52c initial commit --- testcases/README.testcases | 19 +++++++++++++++++++ testcases/archives/common/ar/small_archive.a | 8 ++++++++ testcases/archives/common/bzip2/small_archive.bz2 | Bin 0 -> 176 bytes testcases/archives/common/cab/small_archive.cab | Bin 0 -> 220 bytes testcases/archives/common/compress/small_archive.Z | Bin 0 -> 168 bytes testcases/archives/common/cpio/small_archive.cpio | Bin 0 -> 512 bytes testcases/archives/common/gzip/small_archive.gz | Bin 0 -> 159 bytes testcases/archives/common/lzo/small_archive.lzo | Bin 0 -> 217 bytes testcases/archives/common/rar/small_archive.rar | Bin 0 -> 230 bytes testcases/archives/common/tar/small_archive.tar | Bin 0 -> 2048 bytes testcases/archives/common/xz/small_archive.xz | Bin 0 -> 228 bytes testcases/archives/common/zip/small_archive.zip | Bin 0 -> 289 bytes testcases/archives/exotic/arj/small_archive.arj | Bin 0 -> 269 bytes testcases/archives/exotic/lha/small_archive.lha | Bin 0 -> 182 bytes testcases/archives/exotic/lrzip/small_archive.lrz | Bin 0 -> 260 bytes testcases/archives/exotic/lzip/small_archive.lz | Bin 0 -> 195 bytes testcases/archives/exotic/lzma/small_archive.lzma | Bin 0 -> 182 bytes testcases/archives/exotic/rzip/small_archive.rz | Bin 0 -> 262 bytes testcases/archives/exotic/zoo/small_archive.zoo | Bin 0 -> 336 bytes testcases/images/bmp/not_kitty.bmp | Bin 0 -> 630 bytes testcases/images/gif/not_kitty.gif | Bin 0 -> 198 bytes testcases/images/ico/not_kitty.ico | Bin 0 -> 367 bytes testcases/images/jp2/not_kitty.jp2 | Bin 0 -> 293 bytes testcases/images/jpeg/not_kitty.jpg | Bin 0 -> 413 bytes testcases/images/jxr/not_kitty.jxr | Bin 0 -> 498 bytes testcases/images/png/not_kitty.png | Bin 0 -> 218 bytes testcases/images/png/not_kitty_alpha.png | Bin 0 -> 376 bytes testcases/images/png/not_kitty_gamma.png | Bin 0 -> 228 bytes testcases/images/png/not_kitty_icc.png | Bin 0 -> 427 bytes testcases/images/tiff/not_kitty.tiff | Bin 0 -> 448 bytes testcases/images/webp/not_kitty.webp | Bin 0 -> 226 bytes testcases/multimedia/h264/small_movie.mp4 | Bin 0 -> 1267 bytes testcases/others/elf/small_exec.elf | Bin 0 -> 324 bytes testcases/others/js/small_script.js | 1 + testcases/others/pcap/small_capture.pcap | Bin 0 -> 114 bytes testcases/others/pdf/small.pdf | 2 ++ testcases/others/rtf/small_document.rtf | 1 + testcases/others/sql/simple_queries.sql | 3 +++ testcases/others/text/hello_world.txt | 1 + testcases/others/xml/small_document.xml | 1 + 40 files changed, 36 insertions(+) create mode 100644 testcases/README.testcases create mode 100644 testcases/archives/common/ar/small_archive.a create mode 100644 testcases/archives/common/bzip2/small_archive.bz2 create mode 100644 testcases/archives/common/cab/small_archive.cab create mode 100644 testcases/archives/common/compress/small_archive.Z create mode 100644 testcases/archives/common/cpio/small_archive.cpio create mode 100644 testcases/archives/common/gzip/small_archive.gz create mode 100644 testcases/archives/common/lzo/small_archive.lzo create mode 100644 testcases/archives/common/rar/small_archive.rar create mode 100644 testcases/archives/common/tar/small_archive.tar create mode 100644 testcases/archives/common/xz/small_archive.xz create mode 100644 testcases/archives/common/zip/small_archive.zip create mode 100644 testcases/archives/exotic/arj/small_archive.arj create mode 100644 testcases/archives/exotic/lha/small_archive.lha create mode 100644 testcases/archives/exotic/lrzip/small_archive.lrz create mode 100644 testcases/archives/exotic/lzip/small_archive.lz create mode 100644 testcases/archives/exotic/lzma/small_archive.lzma create mode 100644 testcases/archives/exotic/rzip/small_archive.rz create mode 100644 testcases/archives/exotic/zoo/small_archive.zoo create mode 100644 testcases/images/bmp/not_kitty.bmp create mode 100644 testcases/images/gif/not_kitty.gif create mode 100644 testcases/images/ico/not_kitty.ico create mode 100644 testcases/images/jp2/not_kitty.jp2 create mode 100644 testcases/images/jpeg/not_kitty.jpg create mode 100644 testcases/images/jxr/not_kitty.jxr create mode 100644 testcases/images/png/not_kitty.png create mode 100644 testcases/images/png/not_kitty_alpha.png create mode 100644 testcases/images/png/not_kitty_gamma.png create mode 100644 testcases/images/png/not_kitty_icc.png create mode 100644 testcases/images/tiff/not_kitty.tiff create mode 100644 testcases/images/webp/not_kitty.webp create mode 100644 testcases/multimedia/h264/small_movie.mp4 create mode 100644 testcases/others/elf/small_exec.elf create mode 100644 testcases/others/js/small_script.js create mode 100644 testcases/others/pcap/small_capture.pcap create mode 100644 testcases/others/pdf/small.pdf create mode 100644 testcases/others/rtf/small_document.rtf create mode 100644 testcases/others/sql/simple_queries.sql create mode 100644 testcases/others/text/hello_world.txt create mode 100644 testcases/others/xml/small_document.xml (limited to 'testcases') diff --git a/testcases/README.testcases b/testcases/README.testcases new file mode 100644 index 00000000..30110ba1 --- /dev/null +++ b/testcases/README.testcases @@ -0,0 +1,19 @@ +======================= +AFL starting test cases +======================= + + (See ../docs/README for the general instruction manual.) + +The archives/, images/, multimedia/, and others/ subdirectories contain small, +standalone files that can be used to seed afl-fuzz when testing parsers for a +variety of common data formats. + +There is probably not much to be said about these files, except that they were +optimized for size and stripped of any non-essential fluff. Some directories +contain several examples that exercise various features of the underlying format. +For example, there is a PNG file with and without a color profile. + +Additional test cases are always welcome. + +In addition to well-chosen starting files, many fuzzing jobs benefit from a +small and concise dictionary. See ../dictionaries/README.dictionaries for more. diff --git a/testcases/archives/common/ar/small_archive.a b/testcases/archives/common/ar/small_archive.a new file mode 100644 index 00000000..8c50bc28 --- /dev/null +++ b/testcases/archives/common/ar/small_archive.a @@ -0,0 +1,8 @@ +! +limerick/ 1415337776 500 500 100640 191 ` +There was a young man from Japan +Whose limericks never would scan. +When asked why that was, +He replied "It's because +I always try to cram as many words into the last line as I possibly can." + diff --git a/testcases/archives/common/bzip2/small_archive.bz2 b/testcases/archives/common/bzip2/small_archive.bz2 new file mode 100644 index 00000000..83914ad2 Binary files /dev/null and b/testcases/archives/common/bzip2/small_archive.bz2 differ diff --git a/testcases/archives/common/cab/small_archive.cab b/testcases/archives/common/cab/small_archive.cab new file mode 100644 index 00000000..3f429043 Binary files /dev/null and b/testcases/archives/common/cab/small_archive.cab differ diff --git a/testcases/archives/common/compress/small_archive.Z b/testcases/archives/common/compress/small_archive.Z new file mode 100644 index 00000000..73bf3151 Binary files /dev/null and b/testcases/archives/common/compress/small_archive.Z differ diff --git a/testcases/archives/common/cpio/small_archive.cpio b/testcases/archives/common/cpio/small_archive.cpio new file mode 100644 index 00000000..d1ee8a2c Binary files /dev/null and b/testcases/archives/common/cpio/small_archive.cpio differ diff --git a/testcases/archives/common/gzip/small_archive.gz b/testcases/archives/common/gzip/small_archive.gz new file mode 100644 index 00000000..4a6cd8e1 Binary files /dev/null and b/testcases/archives/common/gzip/small_archive.gz differ diff --git a/testcases/archives/common/lzo/small_archive.lzo b/testcases/archives/common/lzo/small_archive.lzo new file mode 100644 index 00000000..bf310368 Binary files /dev/null and b/testcases/archives/common/lzo/small_archive.lzo differ diff --git a/testcases/archives/common/rar/small_archive.rar b/testcases/archives/common/rar/small_archive.rar new file mode 100644 index 00000000..a5aae4ce Binary files /dev/null and b/testcases/archives/common/rar/small_archive.rar differ diff --git a/testcases/archives/common/tar/small_archive.tar b/testcases/archives/common/tar/small_archive.tar new file mode 100644 index 00000000..8f694fde Binary files /dev/null and b/testcases/archives/common/tar/small_archive.tar differ diff --git a/testcases/archives/common/xz/small_archive.xz b/testcases/archives/common/xz/small_archive.xz new file mode 100644 index 00000000..f30df04f Binary files /dev/null and b/testcases/archives/common/xz/small_archive.xz differ diff --git a/testcases/archives/common/zip/small_archive.zip b/testcases/archives/common/zip/small_archive.zip new file mode 100644 index 00000000..dc7992cd Binary files /dev/null and b/testcases/archives/common/zip/small_archive.zip differ diff --git a/testcases/archives/exotic/arj/small_archive.arj b/testcases/archives/exotic/arj/small_archive.arj new file mode 100644 index 00000000..8bcd12eb Binary files /dev/null and b/testcases/archives/exotic/arj/small_archive.arj differ diff --git a/testcases/archives/exotic/lha/small_archive.lha b/testcases/archives/exotic/lha/small_archive.lha new file mode 100644 index 00000000..e70f325b Binary files /dev/null and b/testcases/archives/exotic/lha/small_archive.lha differ diff --git a/testcases/archives/exotic/lrzip/small_archive.lrz b/testcases/archives/exotic/lrzip/small_archive.lrz new file mode 100644 index 00000000..1a0415f1 Binary files /dev/null and b/testcases/archives/exotic/lrzip/small_archive.lrz differ diff --git a/testcases/archives/exotic/lzip/small_archive.lz b/testcases/archives/exotic/lzip/small_archive.lz new file mode 100644 index 00000000..89e2448e Binary files /dev/null and b/testcases/archives/exotic/lzip/small_archive.lz differ diff --git a/testcases/archives/exotic/lzma/small_archive.lzma b/testcases/archives/exotic/lzma/small_archive.lzma new file mode 100644 index 00000000..bbd056a5 Binary files /dev/null and b/testcases/archives/exotic/lzma/small_archive.lzma differ diff --git a/testcases/archives/exotic/rzip/small_archive.rz b/testcases/archives/exotic/rzip/small_archive.rz new file mode 100644 index 00000000..d1950c4b Binary files /dev/null and b/testcases/archives/exotic/rzip/small_archive.rz differ diff --git a/testcases/archives/exotic/zoo/small_archive.zoo b/testcases/archives/exotic/zoo/small_archive.zoo new file mode 100644 index 00000000..1614e5fb Binary files /dev/null and b/testcases/archives/exotic/zoo/small_archive.zoo differ diff --git a/testcases/images/bmp/not_kitty.bmp b/testcases/images/bmp/not_kitty.bmp new file mode 100644 index 00000000..0309c928 Binary files /dev/null and b/testcases/images/bmp/not_kitty.bmp differ diff --git a/testcases/images/gif/not_kitty.gif b/testcases/images/gif/not_kitty.gif new file mode 100644 index 00000000..244fcc64 Binary files /dev/null and b/testcases/images/gif/not_kitty.gif differ diff --git a/testcases/images/ico/not_kitty.ico b/testcases/images/ico/not_kitty.ico new file mode 100644 index 00000000..d2bb2916 Binary files /dev/null and b/testcases/images/ico/not_kitty.ico differ diff --git a/testcases/images/jp2/not_kitty.jp2 b/testcases/images/jp2/not_kitty.jp2 new file mode 100644 index 00000000..14bca292 Binary files /dev/null and b/testcases/images/jp2/not_kitty.jp2 differ diff --git a/testcases/images/jpeg/not_kitty.jpg b/testcases/images/jpeg/not_kitty.jpg new file mode 100644 index 00000000..0497be49 Binary files /dev/null and b/testcases/images/jpeg/not_kitty.jpg differ diff --git a/testcases/images/jxr/not_kitty.jxr b/testcases/images/jxr/not_kitty.jxr new file mode 100644 index 00000000..0fa2c8ec Binary files /dev/null and b/testcases/images/jxr/not_kitty.jxr differ diff --git a/testcases/images/png/not_kitty.png b/testcases/images/png/not_kitty.png new file mode 100644 index 00000000..eff7c170 Binary files /dev/null and b/testcases/images/png/not_kitty.png differ diff --git a/testcases/images/png/not_kitty_alpha.png b/testcases/images/png/not_kitty_alpha.png new file mode 100644 index 00000000..2fb8da2c Binary files /dev/null and b/testcases/images/png/not_kitty_alpha.png differ diff --git a/testcases/images/png/not_kitty_gamma.png b/testcases/images/png/not_kitty_gamma.png new file mode 100644 index 00000000..939d9d29 Binary files /dev/null and b/testcases/images/png/not_kitty_gamma.png differ diff --git a/testcases/images/png/not_kitty_icc.png b/testcases/images/png/not_kitty_icc.png new file mode 100644 index 00000000..f0c7804d Binary files /dev/null and b/testcases/images/png/not_kitty_icc.png differ diff --git a/testcases/images/tiff/not_kitty.tiff b/testcases/images/tiff/not_kitty.tiff new file mode 100644 index 00000000..506ca1ad Binary files /dev/null and b/testcases/images/tiff/not_kitty.tiff differ diff --git a/testcases/images/webp/not_kitty.webp b/testcases/images/webp/not_kitty.webp new file mode 100644 index 00000000..8592d823 Binary files /dev/null and b/testcases/images/webp/not_kitty.webp differ diff --git a/testcases/multimedia/h264/small_movie.mp4 b/testcases/multimedia/h264/small_movie.mp4 new file mode 100644 index 00000000..adc6c9cb Binary files /dev/null and b/testcases/multimedia/h264/small_movie.mp4 differ diff --git a/testcases/others/elf/small_exec.elf b/testcases/others/elf/small_exec.elf new file mode 100644 index 00000000..bebc60fb Binary files /dev/null and b/testcases/others/elf/small_exec.elf differ diff --git a/testcases/others/js/small_script.js b/testcases/others/js/small_script.js new file mode 100644 index 00000000..bb632d8a --- /dev/null +++ b/testcases/others/js/small_script.js @@ -0,0 +1 @@ +if (1==1) eval('1'); \ No newline at end of file diff --git a/testcases/others/pcap/small_capture.pcap b/testcases/others/pcap/small_capture.pcap new file mode 100644 index 00000000..60e2210b Binary files /dev/null and b/testcases/others/pcap/small_capture.pcap differ diff --git a/testcases/others/pdf/small.pdf b/testcases/others/pdf/small.pdf new file mode 100644 index 00000000..d31b4eb2 --- /dev/null +++ b/testcases/others/pdf/small.pdf @@ -0,0 +1,2 @@ +%PDF-1.0 +1 0 obj<>endobj 2 0 obj<>endobj 3 0 obj<>endobj trailer<> \ No newline at end of file diff --git a/testcases/others/rtf/small_document.rtf b/testcases/others/rtf/small_document.rtf new file mode 100644 index 00000000..0fdedc32 --- /dev/null +++ b/testcases/others/rtf/small_document.rtf @@ -0,0 +1 @@ +{\rtf1\pard Test\par} \ No newline at end of file diff --git a/testcases/others/sql/simple_queries.sql b/testcases/others/sql/simple_queries.sql new file mode 100644 index 00000000..5fff4072 --- /dev/null +++ b/testcases/others/sql/simple_queries.sql @@ -0,0 +1,3 @@ +create table t1(one smallint); +insert into t1 values(1); +select * from t1; diff --git a/testcases/others/text/hello_world.txt b/testcases/others/text/hello_world.txt new file mode 100644 index 00000000..ce013625 --- /dev/null +++ b/testcases/others/text/hello_world.txt @@ -0,0 +1 @@ +hello diff --git a/testcases/others/xml/small_document.xml b/testcases/others/xml/small_document.xml new file mode 100644 index 00000000..684e2846 --- /dev/null +++ b/testcases/others/xml/small_document.xml @@ -0,0 +1 @@ +d -- cgit 1.4.1