1#!/bin/bash -eu
2
3git clone https://github.com/dvyukov/go-fuzz-corpus
4zip corpus.zip go-fuzz-corpus/json/corpus/*
5
6cp corpus.zip $OUT/fuzzparsestring_seed_corpus.zip
7compile_go_fuzzer github.com/buger/jsonparser FuzzParseString fuzzparsestring
8
9cp corpus.zip $OUT/fuzzeachkey_seed_corpus.zip
10compile_go_fuzzer github.com/buger/jsonparser FuzzEachKey fuzzeachkey
11
12cp corpus.zip $OUT/fuzzdelete_seed_corpus.zip
13compile_go_fuzzer github.com/buger/jsonparser FuzzDelete fuzzdelete
14
15cp corpus.zip $OUT/fuzzset_seed_corpus.zip
16compile_go_fuzzer github.com/buger/jsonparser FuzzSet fuzzset
17
18cp corpus.zip $OUT/fuzzobjecteach_seed_corpus.zip
19compile_go_fuzzer github.com/buger/jsonparser FuzzObjectEach fuzzobjecteach
20
21cp corpus.zip $OUT/fuzzparsefloat_seed_corpus.zip
22compile_go_fuzzer github.com/buger/jsonparser FuzzParseFloat fuzzparsefloat
23
24cp corpus.zip $OUT/fuzzparseint_seed_corpus.zip
25compile_go_fuzzer github.com/buger/jsonparser FuzzParseInt fuzzparseint
26
27cp corpus.zip $OUT/fuzzparsebool_seed_corpus.zip
28compile_go_fuzzer github.com/buger/jsonparser FuzzParseBool fuzzparsebool
29
30cp corpus.zip $OUT/fuzztokenstart_seed_corpus.zip
31compile_go_fuzzer github.com/buger/jsonparser FuzzTokenStart fuzztokenstart
32
33cp corpus.zip $OUT/fuzzgetstring_seed_corpus.zip
34compile_go_fuzzer github.com/buger/jsonparser FuzzGetString fuzzgetstring
35
36cp corpus.zip $OUT/fuzzgetfloat_seed_corpus.zip
37compile_go_fuzzer github.com/buger/jsonparser FuzzGetFloat fuzzgetfloat
38
39cp corpus.zip $OUT/fuzzgetint_seed_corpus.zip
40compile_go_fuzzer github.com/buger/jsonparser FuzzGetInt fuzzgetint
41
42cp corpus.zip $OUT/fuzzgetboolean_seed_corpus.zip
43compile_go_fuzzer github.com/buger/jsonparser FuzzGetBoolean fuzzgetboolean
44
45cp corpus.zip $OUT/fuzzgetunsafestring_seed_corpus.zip
46compile_go_fuzzer github.com/buger/jsonparser FuzzGetUnsafeString fuzzgetunsafestring
47