From afffc4388a16e808c43383ec8299962bd95fc660 Mon Sep 17 00:00:00 2001 From: Krzysztof Kowalczyk Date: Tue, 3 Sep 2019 13:22:21 -0700 Subject: [PATCH] update docs for latest best practices --- README.md | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index d8cb403..3b1487e 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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 @@ -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