fuzzing: update Go version used on OSS-Fuzz to 1.21 (#4192)

This commit is contained in:
Marten Seemann 2023-12-09 22:50:09 +05:30 committed by GitHub
parent f162b948db
commit 659da8ca08
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -3,7 +3,7 @@ FROM gcr.io/oss-fuzz-base/base-builder-go:v1
ARG TARGETPLATFORM ARG TARGETPLATFORM
RUN echo "TARGETPLATFORM: ${TARGETPLATFORM}" RUN echo "TARGETPLATFORM: ${TARGETPLATFORM}"
ENV GOVERSION=1.20.7 ENV GOVERSION=1.21.5
RUN platform=$(echo ${TARGETPLATFORM} | tr '/' '-') && \ RUN platform=$(echo ${TARGETPLATFORM} | tr '/' '-') && \
filename="go${GOVERSION}.${platform}.tar.gz" && \ filename="go${GOVERSION}.${platform}.tar.gz" && \

View file

@ -3,12 +3,12 @@
# Install Go manually, since oss-fuzz ships with an outdated Go version. # Install Go manually, since oss-fuzz ships with an outdated Go version.
# See https://github.com/google/oss-fuzz/pull/10643. # See https://github.com/google/oss-fuzz/pull/10643.
export CXX="${CXX} -lresolv" # required by Go 1.20 export CXX="${CXX} -lresolv" # required by Go 1.20
wget https://go.dev/dl/go1.20.5.linux-amd64.tar.gz \ wget https://go.dev/dl/go1.21.5.linux-amd64.tar.gz \
&& mkdir temp-go \ && mkdir temp-go \
&& rm -rf /root/.go/* \ && rm -rf /root/.go/* \
&& tar -C temp-go/ -xzf go1.20.5.linux-amd64.tar.gz \ && tar -C temp-go/ -xzf go1.21.5.linux-amd64.tar.gz \
&& mv temp-go/go/* /root/.go/ \ && mv temp-go/go/* /root/.go/ \
&& rm -rf temp-go go1.20.5.linux-amd64.tar.gz && rm -rf temp-go go1.21.5.linux-amd64.tar.gz
( (
# fuzz qpack # fuzz qpack