Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions projects/tailscale/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,15 @@
################################################################################

FROM gcr.io/oss-fuzz-base/base-builder-go
RUN apt-get update && apt-get install -y wget

# The Go version is intentionally not pinned here. tailscale's go.mod (`go`
# directive) is the single source of truth; GOTOOLCHAIN=auto fetches a matching
# toolchain at build time if the base image's bundled Go is older, and
# fuzz/oss-fuzz.sh copies it to a writable dir so go-118-fuzz-build_v2 can
# overlay its testing/fuzz.go. Bumping Go = editing go.mod in the tailscale repo;
# this Dockerfile stays untouched.

RUN git clone --depth 1 https://github.com/tailscale/tailscale
RUN wget https://go.dev/dl/go1.23.1.linux-amd64.tar.gz \
&& mkdir temp-go \
&& rm -rf /root/.go/* \
&& tar -C temp-go/ -xzf go1.23.1.linux-amd64.tar.gz \
&& mv temp-go/go/* /root/.go/

COPY build.sh $SRC/
WORKDIR $SRC/tailscale
2 changes: 1 addition & 1 deletion projects/tailscale/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
#
################################################################################

compile_go_fuzzer tailscale.com/net/stun FuzzStunParser stun_parser_fuzzer
bash -x ./fuzz/oss-fuzz.sh