|
4 | 4 | # Continuous Fuzzing for Golang Example
|
5 | 5 |
|
6 | 6 | This is an example of how to integrate your [go-fuzz](https://github.com/dvyukov/go-fuzz) targets with the
|
7 |
| -[Fuzzit](https://fuzzit.dev) Continuous Fuzzing Platform (Go support is currently in Alpha). |
| 7 | +[Fuzzit](https://fuzzit.dev) Continuous Fuzzing Platform (Go support is currently in Beta). |
8 | 8 |
|
9 | 9 | This example will show the following steps:
|
10 | 10 | * [Building and running a simple go-fuzz target locally](#building-go-fuzz-target)
|
@@ -82,8 +82,8 @@ go get github.com/fuzzitdev/example-go
|
82 | 82 |
|
83 | 83 | ```bash
|
84 | 84 | cd /go/src/github.com/fuzzitdev/example-go
|
85 |
| -go-fuzz-build -libfuzzer -o fuzzer.a . |
86 |
| -clang-9 -fsanitize=fuzzer fuzzer.a -o fuzzer |
| 85 | +go-fuzz-build -libfuzzer -o parse-complex.a . |
| 86 | +clang-9 -fsanitize=fuzzer parse-complex.a -o parse-complex |
87 | 87 | ```
|
88 | 88 |
|
89 | 89 | ### Running the fuzzer
|
@@ -159,20 +159,11 @@ Here is the relevant snippet from the [fuzzit.sh](https://github.com/fuzzitdev/e
|
159 | 159 | which is being run by [.travis.yml](https://github.com/fuzzitdev/example-go/blob/master/.travis.yml)
|
160 | 160 |
|
161 | 161 | ```bash
|
162 |
| - |
163 |
| -if [ -z "${FUZZIT_API_KEY}" ]; then |
164 |
| - echo "Please set env variable FUZZIT_API_KEY to api key for your project" |
165 |
| - echo "Api key for your account: https://app.fuzzit.dev/orgs/<ACCOUNT>/settings" |
166 |
| - exit 1 |
167 |
| -fi |
168 |
| - |
169 | 162 | wget -q -O fuzzit https://github.com/fuzzitdev/fuzzit/releases/download/v2.4.17/fuzzit_Linux_x86_64
|
170 | 163 | chmod a+x fuzzit
|
171 | 164 |
|
172 |
| -export TARGET=example-go |
173 |
| -GIT_BRANCH=`git rev-parse --abbrev-ref HEAD` |
174 |
| -GIT_COMMIT=`git rev-parse --short HEAD` |
175 |
| -./fuzzit create job --type $1 --branch $GIT_BRANCH --revision $GIT_COMMIT $TARGET ./fuzzer |
| 165 | +## upload fuzz target for long fuzz testing on fuzzit.dev server or run locally for regression |
| 166 | +./fuzzit create job --type ${1} fuzzitdev/parse-complex parse-complex |
176 | 167 | ```
|
177 | 168 |
|
178 | 169 | In production it is advised to download a pinned version of the [CLI](https://github.com/fuzzitdev/fuzzit)
|
|
0 commit comments