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