Skip to content
This repository was archived by the owner on Jul 22, 2020. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 3 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,16 +63,7 @@ func Fuzz(data []byte) int {
### Setting up the development environment

```bash
docker run -it golang:1.12.7-buster /bin/bash

# Download Clang-9
echo "deb http://apt.llvm.org/buster/ llvm-toolchain-buster main" >> /etc/apt/sources.list
echo "deb-src http://apt.llvm.org/buster/ llvm-toolchain-buster main" >> /etc/apt/sources.list
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key| apt-key add -
apt update && apt install -y clang-9 lldb-9 lld-9

# Download go-fuzz and go-fuzz-build
go get -u github.com/dvyukov/go-fuzz/go-fuzz github.com/dvyukov/go-fuzz/go-fuzz-build
docker run -it gcr.io/fuzzit-public/buster-golang12:2dc7875 /bin/bash

# Download this example
go get github.com/fuzzitdev/example-go
Expand All @@ -83,7 +74,7 @@ go get github.com/fuzzitdev/example-go
```bash
cd /go/src/github.com/fuzzitdev/example-go
go-fuzz-build -libfuzzer -o parse-complex.a .
clang-9 -fsanitize=fuzzer parse-complex.a -o parse-complex
clang -fsanitize=fuzzer parse-complex.a -o parse-complex
```

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

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

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