• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2020 Google Inc.
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7#      http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15# These two dependencies cause build issues and are not used by oss-fuzz:
16rm -r sqlparser
17rm -r parser
18
19mkdir math && cp $SRC/math_big_fuzzer.go ./math/
20
21go get -u golang.org/x/text
22mkdir text && cp $SRC/text_fuzzer.go ./text/
23
24go mod init "github.com/dvyukov/go-fuzz-corpus"
25export FUZZ_ROOT="github.com/dvyukov/go-fuzz-corpus"
26compile_go_fuzzer $FUZZ_ROOT/text FuzzAcceptLanguage accept_language_fuzzer
27compile_go_fuzzer $FUZZ_ROOT/text FuzzCurrency currency_fuzzer
28compile_go_fuzzer $FUZZ_ROOT/math FuzzBigIntCmp1 big_cmp_fuzzer1
29compile_go_fuzzer $FUZZ_ROOT/math FuzzBigIntCmp2 big_cmp_fuzzer2
30compile_go_fuzzer $FUZZ_ROOT/math FuzzRatSetString big_rat_fuzzer
31compile_go_fuzzer $FUZZ_ROOT/asn1 Fuzz asn_fuzzer
32compile_go_fuzzer $FUZZ_ROOT/csv Fuzz csv_fuzzer
33compile_go_fuzzer $FUZZ_ROOT/elliptic Fuzz elliptic_fuzzer
34compile_go_fuzzer $FUZZ_ROOT/flate Fuzz flate_fuzzer
35compile_go_fuzzer $FUZZ_ROOT/fmt Fuzz fmt_fuzzer
36compile_go_fuzzer $FUZZ_ROOT/gzip Fuzz gzip_fuzzer
37compile_go_fuzzer $FUZZ_ROOT/httpreq Fuzz httpreq_fuzzer
38compile_go_fuzzer $FUZZ_ROOT/jpeg Fuzz jpeg_fuzzer
39compile_go_fuzzer $FUZZ_ROOT/json Fuzz json_fuzzer
40compile_go_fuzzer $FUZZ_ROOT/lzw Fuzz lzw_fuzzer
41compile_go_fuzzer $FUZZ_ROOT/mime Fuzz mime_fuzzer
42compile_go_fuzzer $FUZZ_ROOT/multipart Fuzz multipart_fuzzer
43compile_go_fuzzer $FUZZ_ROOT/png Fuzz png_fuzzer
44compile_go_fuzzer $FUZZ_ROOT/tar Fuzz tar_fuzzer
45compile_go_fuzzer $FUZZ_ROOT/time Fuzz time_fuzzer
46compile_go_fuzzer $FUZZ_ROOT/xml Fuzz xml_fuzzer
47compile_go_fuzzer $FUZZ_ROOT/zip Fuzz zip_fuzzer
48compile_go_fuzzer $FUZZ_ROOT/zlib Fuzz zlib_fuzzer
49