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

Commit d8e0826

Browse files
author
Yevgeny Pats
authored
Merge pull request #15 from fuzzitdev/kjk-patch-5
update docs for latest best practices
2 parents b556fc8 + afffc43 commit d8e0826

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

README.md

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -63,16 +63,7 @@ func Fuzz(data []byte) int {
6363
### Setting up the development environment
6464

6565
```bash
66-
docker run -it golang:1.12.7-buster /bin/bash
67-
68-
# Download Clang-9
69-
echo "deb http://apt.llvm.org/buster/ llvm-toolchain-buster main" >> /etc/apt/sources.list
70-
echo "deb-src http://apt.llvm.org/buster/ llvm-toolchain-buster main" >> /etc/apt/sources.list
71-
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key| apt-key add -
72-
apt update && apt install -y clang-9 lldb-9 lld-9
73-
74-
# Download go-fuzz and go-fuzz-build
75-
go get -u github.com/dvyukov/go-fuzz/go-fuzz github.com/dvyukov/go-fuzz/go-fuzz-build
66+
docker run -it gcr.io/fuzzit-public/buster-golang12:2dc7875 /bin/bash
7667

7768
# Download this example
7869
go get github.com/fuzzitdev/example-go
@@ -83,7 +74,7 @@ go get github.com/fuzzitdev/example-go
8374
```bash
8475
cd /go/src/github.com/fuzzitdev/example-go
8576
go-fuzz-build -libfuzzer -o parse-complex.a .
86-
clang-9 -fsanitize=fuzzer parse-complex.a -o parse-complex
77+
clang -fsanitize=fuzzer parse-complex.a -o parse-complex
8778
```
8879

8980
### Running the fuzzer
@@ -162,7 +153,7 @@ Here is the relevant snippet from the [fuzzit.sh](https://github.com/fuzzitdev/e
162153
which is being run by [.travis.yml](https://github.com/fuzzitdev/example-go/blob/master/.travis.yml)
163154

164155
```bash
165-
wget -q -O fuzzit https://github.com/fuzzitdev/fuzzit/releases/download/v2.4.17/fuzzit_Linux_x86_64
156+
wget -q -O fuzzit https://github.com/fuzzitdev/fuzzit/releases/download/v2.4.35/fuzzit_Linux_x86_64
166157
chmod a+x fuzzit
167158

168159
## upload fuzz target for long fuzz testing on fuzzit.dev server or run locally for regression

0 commit comments

Comments
 (0)