Skip to content
This repository was archived by the owner on Jul 22, 2020. It is now read-only.

Commit 52542e7

Browse files
author
Yevgeny Pats
committed
Update README.md
1 parent e721077 commit 52542e7

File tree

2 files changed

+8
-14
lines changed

2 files changed

+8
-14
lines changed

README.md

+5-14
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Continuous Fuzzing for Golang Example
55

66
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).
88

99
This example will show the following steps:
1010
* [Building and running a simple go-fuzz target locally](#building-go-fuzz-target)
@@ -82,8 +82,8 @@ go get github.com/fuzzitdev/example-go
8282

8383
```bash
8484
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
8787
```
8888

8989
### Running the fuzzer
@@ -159,20 +159,11 @@ Here is the relevant snippet from the [fuzzit.sh](https://github.com/fuzzitdev/e
159159
which is being run by [.travis.yml](https://github.com/fuzzitdev/example-go/blob/master/.travis.yml)
160160

161161
```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-
169162
wget -q -O fuzzit https://github.com/fuzzitdev/fuzzit/releases/download/v2.4.17/fuzzit_Linux_x86_64
170163
chmod a+x fuzzit
171164

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
176167
```
177168

178169
In production it is advised to download a pinned version of the [CLI](https://github.com/fuzzitdev/fuzzit)

go.mod

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module github.com/fuzzitdev/example-go
2+
3+
go 1.12

0 commit comments

Comments
 (0)