diff options
author | Abhishek Arya <inferno@chromium.org> | 2017-03-06 12:37:58 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-06 12:37:58 -0800 |
commit | 7643d953146b4d1840e4581b00041ecf432250d7 (patch) | |
tree | b210924dbfddec935889798985b181b0643a806b /projects/woff2 | |
parent | ec444de5d2ecb67d0ebd1c95b8dea61238e9a3cf (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/Dockerfile | 3 | ||||
-rwxr-xr-x | projects/woff2/build.sh | 4 | ||||
-rw-r--r-- | projects/woff2/convert_woff2ttf_fuzzer_new_entry.options | 2 | ||||
-rw-r--r-- | projects/woff2/corpus/Ahem.woff2 | bin | 0 -> 1624 bytes | |||
-rw-r--r-- | projects/woff2/corpus/AhemSpaceLigature.woff2 | bin | 0 -> 1080 bytes | |||
-rw-r--r-- | projects/woff2/corpus/DejaVuSerif-webfont.woff2 | bin | 0 -> 14464 bytes | |||
-rw-r--r-- | projects/woff2/corpus/DejaVuSerif.woff2 | bin | 0 -> 14036 bytes | |||
-rw-r--r-- | projects/woff2/corpus/EzraSIL.woff2 | bin | 0 -> 46240 bytes | |||
-rw-r--r-- | projects/woff2/corpus/LinLibertineO.woff2 | bin | 0 -> 334436 bytes | |||
-rw-r--r-- | projects/woff2/corpus/MEgalopolisExtra.woff2 | bin | 0 -> 30352 bytes | |||
-rw-r--r-- | projects/woff2/corpus/OpenSans.woff2 | bin | 0 -> 15264 bytes | |||
-rw-r--r-- | projects/woff2/corpus/mplus-1p-regular.woff2 | bin | 0 -> 581520 bytes | |||
-rw-r--r-- | projects/woff2/corpus/tcu-font.woff2 | bin | 0 -> 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 Binary files differnew file mode 100644 index 00000000..77293249 --- /dev/null +++ b/projects/woff2/corpus/Ahem.woff2 diff --git a/projects/woff2/corpus/AhemSpaceLigature.woff2 b/projects/woff2/corpus/AhemSpaceLigature.woff2 Binary files differnew file mode 100644 index 00000000..dc15e79d --- /dev/null +++ b/projects/woff2/corpus/AhemSpaceLigature.woff2 diff --git a/projects/woff2/corpus/DejaVuSerif-webfont.woff2 b/projects/woff2/corpus/DejaVuSerif-webfont.woff2 Binary files differnew file mode 100644 index 00000000..953010af --- /dev/null +++ b/projects/woff2/corpus/DejaVuSerif-webfont.woff2 diff --git a/projects/woff2/corpus/DejaVuSerif.woff2 b/projects/woff2/corpus/DejaVuSerif.woff2 Binary files differnew file mode 100644 index 00000000..b972c087 --- /dev/null +++ b/projects/woff2/corpus/DejaVuSerif.woff2 diff --git a/projects/woff2/corpus/EzraSIL.woff2 b/projects/woff2/corpus/EzraSIL.woff2 Binary files differnew file mode 100644 index 00000000..e987c38c --- /dev/null +++ b/projects/woff2/corpus/EzraSIL.woff2 diff --git a/projects/woff2/corpus/LinLibertineO.woff2 b/projects/woff2/corpus/LinLibertineO.woff2 Binary files differnew file mode 100644 index 00000000..e843c8c1 --- /dev/null +++ b/projects/woff2/corpus/LinLibertineO.woff2 diff --git a/projects/woff2/corpus/MEgalopolisExtra.woff2 b/projects/woff2/corpus/MEgalopolisExtra.woff2 Binary files differnew file mode 100644 index 00000000..2d0def4b --- /dev/null +++ b/projects/woff2/corpus/MEgalopolisExtra.woff2 diff --git a/projects/woff2/corpus/OpenSans.woff2 b/projects/woff2/corpus/OpenSans.woff2 Binary files differnew file mode 100644 index 00000000..f898c34d --- /dev/null +++ b/projects/woff2/corpus/OpenSans.woff2 diff --git a/projects/woff2/corpus/mplus-1p-regular.woff2 b/projects/woff2/corpus/mplus-1p-regular.woff2 Binary files differnew file mode 100644 index 00000000..171e366c --- /dev/null +++ b/projects/woff2/corpus/mplus-1p-regular.woff2 diff --git a/projects/woff2/corpus/tcu-font.woff2 b/projects/woff2/corpus/tcu-font.woff2 Binary files differnew file mode 100644 index 00000000..df15e4cd --- /dev/null +++ b/projects/woff2/corpus/tcu-font.woff2 |