ngolo-fuzzing: use latest go from git (#7490)

This commit is contained in:
Catena cyber 2022-04-02 23:05:24 +02:00 committed by GitHub
parent 43da75fcc0
commit 4ae09c2ac2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 0 deletions

View File

@ -26,6 +26,7 @@ RUN mkdir LPM; \
RUN go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
RUN git clone --depth 1 https://go.googlesource.com/go goroot
RUN git clone --depth 1 https://github.com/catenacyber/ngolo-fuzzing.git
COPY build.sh $SRC/

View File

@ -15,6 +15,14 @@
#
################################################################################
# compile latest go from git
(
cd $SRC/goroot/src
./make.bash
)
rm -Rf /root/.go/
mv $SRC/goroot /root/.go
compile_package () {
pkg=$1
pkg_flat=`echo $pkg | sed 's/\//_/g'`
@ -35,6 +43,7 @@ compile_package () {
$CXX $CXXFLAGS $LIB_FUZZING_ENGINE fuzz_ng_$pkg_flat/ngolofuzz.pb.o fuzz_ng_$pkg_flat//ngolofuzz.o fuzz_ng_$pkg_flat.a $SRC/LPM/src/libfuzzer/libprotobuf-mutator-libfuzzer.a $SRC/LPM/src/libprotobuf-mutator.a $SRC/LPM/external.protobuf/lib/libprotobuf.a -o $OUT/fuzz_ng_$pkg_flat
}
# in $SRC/ngolo-fuzzing
go build
(