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

Commit 52913f9

Browse files
authored
Merge pull request #2 from kjk/fix-integration
Tweak README and harden ci/fuzzit.sh
2 parents d3ac60a + 962eede commit 52913f9

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,14 +82,14 @@ go get github.com/fuzzitdev/example-go
8282

8383
```bash
8484
cd /go/src/github.com/fuzzitdev/example-go
85-
go-fuzz-build -libfuzzer ./...
86-
clang-9 -fsanitize=fuzzer parser-fuzz.a -o parser-fuzz.libfuzzer
85+
go-fuzz-build -libfuzzer -o fuzzer.a ./...
86+
clang-9 -fsanitize=fuzzer fuzzer.a -o fuzzer
8787
```
8888

8989
### Running the fuzzer
9090

9191
```bash
92-
./parser-fuzz.libfuzzer
92+
./fuzzer
9393
```
9494

9595
Will print the following output and stacktrace:

ci/fuzzit.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
set -xe
22

3+
if [ -z ${1+x} ]; then
4+
echo "must call with job type as first argument e.g. 'fuzzing' or 'sanity'"
5+
echo "see https://github.com/fuzzitdev/example-go/blob/master/.travis.yml"
6+
exit 1
7+
fi
8+
39
## Install go-fuzz
410
go get -u github.com/dvyukov/go-fuzz/go-fuzz github.com/dvyukov/go-fuzz/go-fuzz-build
511

0 commit comments

Comments
 (0)