From f596b9954fc6d04727c9d4242a48487fdb8688e9 Mon Sep 17 00:00:00 2001 From: Patrick Ventuzelo Date: Fri, 2 Oct 2020 12:38:35 +0200 Subject: [PATCH] fix prysm --- beaconfuzz_v2/README.md | 2 +- beaconfuzz_v2/docker/Dockerfile | 2 +- eth2fuzz/src/go_fuzzers.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/beaconfuzz_v2/README.md b/beaconfuzz_v2/README.md index 077d934..d0c70bf 100644 --- a/beaconfuzz_v2/README.md +++ b/beaconfuzz_v2/README.md @@ -57,7 +57,7 @@ cp -r beacon-fuzz/beaconfuzz_v2/libs/pfuzz prysm/ Compile the prysm fuzzing library: ``` go get . -go build -o libpfuzz.a -buildmode=c-archive pfuzz.go +go build -o libpfuzz.a -tags=blst_enabled,libfuzzer -buildmode=c-archive pfuzz.go ``` --> Set the following variable with the current path of prysm: diff --git a/beaconfuzz_v2/docker/Dockerfile b/beaconfuzz_v2/docker/Dockerfile index d072c00..572f45e 100644 --- a/beaconfuzz_v2/docker/Dockerfile +++ b/beaconfuzz_v2/docker/Dockerfile @@ -122,7 +122,7 @@ RUN go get -u github.com/prysmaticlabs/prysm || true # Compile pfuzz lib RUN cd /prysm/pfuzz/ && go get . || true -RUN cd /prysm/pfuzz/ && go build -o -tags=blst_enabled libpfuzz.a -buildmode=c-archive pfuzz.go +RUN cd /prysm/pfuzz/ && go build -o -tags=blst_enabled,libfuzzer libpfuzz.a -buildmode=c-archive pfuzz.go diff --git a/eth2fuzz/src/go_fuzzers.rs b/eth2fuzz/src/go_fuzzers.rs index 17451d7..5f67761 100644 --- a/eth2fuzz/src/go_fuzzers.rs +++ b/eth2fuzz/src/go_fuzzers.rs @@ -85,7 +85,7 @@ impl FuzzerGoLibfuzzer { let compile_lib = Command::new("/eth2fuzz/bin/go114-fuzz-build") .args(&[ - "-func", + "-tags=blst_enabled,libfuzzer", &self.some_kind_of_uppercase_first_letter(&target.name()), "github.com/prysmaticlabs/prysm", ])