aboutsummaryrefslogtreecommitdiffhomepage
path: root/projects/woff2
diff options
context:
space:
mode:
authorGravatar Abhishek Arya <inferno@chromium.org>2017-03-06 12:37:58 -0800
committerGravatar GitHub <noreply@github.com>2017-03-06 12:37:58 -0800
commit7643d953146b4d1840e4581b00041ecf432250d7 (patch)
treeb210924dbfddec935889798985b181b0643a806b /projects/woff2
parentec444de5d2ecb67d0ebd1c95b8dea61238e9a3cf (diff)
Add seed corpus for woff2, add missing options for other fuzzer. (#439)
* Add seed corpus for woff2, add missing options for other fuzzer. * Add seed corpus. * Switch from seed corpus archive to a folder with files.
Diffstat (limited to 'projects/woff2')
-rw-r--r--projects/woff2/Dockerfile3
-rwxr-xr-xprojects/woff2/build.sh4
-rw-r--r--projects/woff2/convert_woff2ttf_fuzzer_new_entry.options2
-rw-r--r--projects/woff2/corpus/Ahem.woff2bin0 -> 1624 bytes
-rw-r--r--projects/woff2/corpus/AhemSpaceLigature.woff2bin0 -> 1080 bytes
-rw-r--r--projects/woff2/corpus/DejaVuSerif-webfont.woff2bin0 -> 14464 bytes
-rw-r--r--projects/woff2/corpus/DejaVuSerif.woff2bin0 -> 14036 bytes
-rw-r--r--projects/woff2/corpus/EzraSIL.woff2bin0 -> 46240 bytes
-rw-r--r--projects/woff2/corpus/LinLibertineO.woff2bin0 -> 334436 bytes
-rw-r--r--projects/woff2/corpus/MEgalopolisExtra.woff2bin0 -> 30352 bytes
-rw-r--r--projects/woff2/corpus/OpenSans.woff2bin0 -> 15264 bytes
-rw-r--r--projects/woff2/corpus/mplus-1p-regular.woff2bin0 -> 581520 bytes
-rw-r--r--projects/woff2/corpus/tcu-font.woff2bin0 -> 40888 bytes
13 files changed, 7 insertions, 2 deletions
diff --git a/projects/woff2/Dockerfile b/projects/woff2/Dockerfile
index 514b3048..ad0d22db 100644
--- a/projects/woff2/Dockerfile
+++ b/projects/woff2/Dockerfile
@@ -20,4 +20,5 @@ RUN apt-get install -y make autoconf automake libtool
RUN git clone --depth 1 --recursive https://github.com/google/woff2
WORKDIR woff2
-COPY build.sh convert_woff2ttf_fuzzer.* $SRC/
+COPY build.sh *.options $SRC/
+COPY corpus $SRC/corpus
diff --git a/projects/woff2/build.sh b/projects/woff2/build.sh
index 80eea552..2f25ddd1 100755
--- a/projects/woff2/build.sh
+++ b/projects/woff2/build.sh
@@ -28,8 +28,10 @@ make -j$(nproc) CC="$CC $CFLAGS" CXX="$CXX $CXXFLAGS" CANONICAL_PREFIXES= all \
# Build fuzzers
for fuzzer_archive in $(ls src/*fuzzer*.a); do
+ fuzzer_name=$(basename ${fuzzer_archive%.a})
$CXX $CXXFLAGS -lFuzzingEngine $fuzzer_archive \
- -o $OUT/$(basename ${fuzzer_archive%.a})
+ -o $OUT/$fuzzer_name
+ zip -q $OUT/${fuzzer_name}_seed_corpus.zip $SRC/corpus/*
done
cp $SRC/*.options $OUT/
diff --git a/projects/woff2/convert_woff2ttf_fuzzer_new_entry.options b/projects/woff2/convert_woff2ttf_fuzzer_new_entry.options
new file mode 100644
index 00000000..e5ae71b9
--- /dev/null
+++ b/projects/woff2/convert_woff2ttf_fuzzer_new_entry.options
@@ -0,0 +1,2 @@
+[libfuzzer]
+max_len = 1000000
diff --git a/projects/woff2/corpus/Ahem.woff2 b/projects/woff2/corpus/Ahem.woff2
new file mode 100644
index 00000000..77293249
--- /dev/null
+++ b/projects/woff2/corpus/Ahem.woff2
Binary files differ
diff --git a/projects/woff2/corpus/AhemSpaceLigature.woff2 b/projects/woff2/corpus/AhemSpaceLigature.woff2
new file mode 100644
index 00000000..dc15e79d
--- /dev/null
+++ b/projects/woff2/corpus/AhemSpaceLigature.woff2
Binary files differ
diff --git a/projects/woff2/corpus/DejaVuSerif-webfont.woff2 b/projects/woff2/corpus/DejaVuSerif-webfont.woff2
new file mode 100644
index 00000000..953010af
--- /dev/null
+++ b/projects/woff2/corpus/DejaVuSerif-webfont.woff2
Binary files differ
diff --git a/projects/woff2/corpus/DejaVuSerif.woff2 b/projects/woff2/corpus/DejaVuSerif.woff2
new file mode 100644
index 00000000..b972c087
--- /dev/null
+++ b/projects/woff2/corpus/DejaVuSerif.woff2
Binary files differ
diff --git a/projects/woff2/corpus/EzraSIL.woff2 b/projects/woff2/corpus/EzraSIL.woff2
new file mode 100644
index 00000000..e987c38c
--- /dev/null
+++ b/projects/woff2/corpus/EzraSIL.woff2
Binary files differ
diff --git a/projects/woff2/corpus/LinLibertineO.woff2 b/projects/woff2/corpus/LinLibertineO.woff2
new file mode 100644
index 00000000..e843c8c1
--- /dev/null
+++ b/projects/woff2/corpus/LinLibertineO.woff2
Binary files differ
diff --git a/projects/woff2/corpus/MEgalopolisExtra.woff2 b/projects/woff2/corpus/MEgalopolisExtra.woff2
new file mode 100644
index 00000000..2d0def4b
--- /dev/null
+++ b/projects/woff2/corpus/MEgalopolisExtra.woff2
Binary files differ
diff --git a/projects/woff2/corpus/OpenSans.woff2 b/projects/woff2/corpus/OpenSans.woff2
new file mode 100644
index 00000000..f898c34d
--- /dev/null
+++ b/projects/woff2/corpus/OpenSans.woff2
Binary files differ
diff --git a/projects/woff2/corpus/mplus-1p-regular.woff2 b/projects/woff2/corpus/mplus-1p-regular.woff2
new file mode 100644
index 00000000..171e366c
--- /dev/null
+++ b/projects/woff2/corpus/mplus-1p-regular.woff2
Binary files differ
diff --git a/projects/woff2/corpus/tcu-font.woff2 b/projects/woff2/corpus/tcu-font.woff2
new file mode 100644
index 00000000..df15e4cd
--- /dev/null
+++ b/projects/woff2/corpus/tcu-font.woff2
Binary files differ