forked from quic-go/quic-go
basic ClusterFuzzLite integration (#4034)
This commit is contained in:
21
.clusterfuzzlite/Dockerfile
Normal file
21
.clusterfuzzlite/Dockerfile
Normal file
@@ -0,0 +1,21 @@
|
||||
FROM gcr.io/oss-fuzz-base/base-builder-go:v1
|
||||
|
||||
ARG TARGETPLATFORM
|
||||
RUN echo "TARGETPLATFORM: ${TARGETPLATFORM}"
|
||||
|
||||
ENV GOVERSION=1.20.7
|
||||
|
||||
RUN platform=$(echo ${TARGETPLATFORM} | tr '/' '-') && \
|
||||
filename="go${GOVERSION}.${platform}.tar.gz" && \
|
||||
wget https://dl.google.com/go/${filename} && \
|
||||
mkdir temp-go && \
|
||||
rm -rf /root/.go/* && \
|
||||
tar -C temp-go/ -xzf ${filename} && \
|
||||
mv temp-go/go/* /root/.go/ && \
|
||||
rm -r ${filename} temp-go
|
||||
|
||||
RUN apt-get update && apt-get install -y make autoconf automake libtool
|
||||
|
||||
COPY . $SRC/quic-go
|
||||
WORKDIR quic-go
|
||||
COPY .clusterfuzzlite/build.sh $SRC/
|
||||
9
.clusterfuzzlite/build.sh
Executable file
9
.clusterfuzzlite/build.sh
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/bin/bash -eu
|
||||
|
||||
export CXX="${CXX} -lresolv" # required by Go 1.20
|
||||
|
||||
compile_go_fuzzer github.com/quic-go/quic-go/fuzzing/frames Fuzz frame_fuzzer
|
||||
compile_go_fuzzer github.com/quic-go/quic-go/fuzzing/header Fuzz header_fuzzer
|
||||
compile_go_fuzzer github.com/quic-go/quic-go/fuzzing/transportparameters Fuzz transportparameter_fuzzer
|
||||
compile_go_fuzzer github.com/quic-go/quic-go/fuzzing/tokens Fuzz token_fuzzer
|
||||
compile_go_fuzzer github.com/quic-go/quic-go/fuzzing/handshake Fuzz handshake_fuzzer
|
||||
1
.clusterfuzzlite/project.yaml
Normal file
1
.clusterfuzzlite/project.yaml
Normal file
@@ -0,0 +1 @@
|
||||
language: go
|
||||
Reference in New Issue
Block a user