Skip to content
This repository has been archived by the owner on May 13, 2022. It is now read-only.

add config go fuzz to docker #1534

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
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
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
FROM ethereum/solc:0.5.15 as solc-builder
# We use a multistage build to avoid bloating our deployment image with build dependencies
FROM golang:1.16-alpine3.13 as builder
# We use gofuzz
FROM gcr.io/oss-fuzz-base/base-builder-go

RUN git clone --depth 1 https://github.com/ianlancetaylor/demangle

RUN apk add --no-cache --update git bash make musl-dev gcc libc6-compat

Expand Down
5 changes: 5 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,8 @@ services:
volumes:
- .:/go/src/github.com/hyperledger/burrow
working_dir: /go/src/github.com/hyperledger/burrow
language: go
fuzz_engines:
- libfuzzer
santinizers:
- address
10 changes: 10 additions & 0 deletions tests/fuzzer/test_oss_fuzzer.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package fuzzer

import (
"fmt"
)

func Fuzz(data []byte) int {
fmt.Println(data)
return 0
}