Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tweak README and harden ci/fuzzit.sh #2

Merged
merged 2 commits into from Aug 2, 2019
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

@@ -82,14 +82,14 @@ go get github.com/fuzzitdev/example-go

```bash
cd /go/src/github.com/fuzzitdev/example-go
go-fuzz-build -libfuzzer ./...
clang-9 -fsanitize=fuzzer parser-fuzz.a -o parser-fuzz.libfuzzer
go-fuzz-build -libfuzzer -o fuzzer.a ./...
clang-9 -fsanitize=fuzzer fuzzer.a -o fuzzer
```

### Running the fuzzer

```bash
./parser-fuzz.libfuzzer
./fuzzer
```

Will print the following output and stacktrace:
@@ -1,5 +1,11 @@
set -xe

if [ -z ${1+x} ]; then
echo "must call with job type as first argument e.g. 'fuzzing' or 'sanity'"
echo "see https://github.com/fuzzitdev/example-go/blob/master/.travis.yml"
exit 1
fi

## Install go-fuzz
go get -u github.com/dvyukov/go-fuzz/go-fuzz github.com/dvyukov/go-fuzz/go-fuzz-build

ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.