Fixes radon build (#5267)

* Fixes radon build

* Fixes lotus build for all fuzz targets

* Fixes lotus
This commit is contained in:
Catena cyber 2021-03-01 16:50:59 +01:00 committed by GitHub
parent afd33be51e
commit 038808d7b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 3 deletions

View File

@ -18,6 +18,12 @@
make
compile_go_fuzzer github.com/filecoin-project/lotus/chain/types FuzzMessage fuzz_message gofuzz
cd ../fuzzing-lotus/fuzz
# obsolete modules referenced
rm -Rf libfuzzer
go mod init github.com/filecoin-project/fuzzing-lotus/fuzz
compile_go_fuzzer github.com/filecoin-project/fuzzing-lotus/fuzz FuzzBlockMsg fuzz_block_msg
compile_go_fuzzer github.com/filecoin-project/fuzzing-lotus/fuzz FuzzBlockMsgStructural fuzz_block_msg_structural
compile_go_fuzzer github.com/filecoin-project/fuzzing-lotus/fuzz FuzzBlockHeader fuzz_block_header

View File

@ -15,6 +15,6 @@
################################################################################
FROM gcr.io/oss-fuzz-base/base-builder
RUN go get github.com/radondb/radon/src/fuzz/sqlparser@master
RUN git clone --depth 1 https://github.com/radondb/radon
COPY build.sh $SRC/
WORKDIR $SRC/
WORKDIR $SRC/radon

View File

@ -16,4 +16,6 @@
################################################################################
compile_go_fuzzer github.com/radondb/radon/src/fuzz/sqlparser Fuzz fuzz
cd ./src/fuzz/sqlparser
go mod init github.com/radondb/radon/src/fuzz/sqlparser
compile_go_fuzzer . Fuzz fuzz