From a8cf3302a8ff92fc1c7d061ca1efa6eb96d87c55 Mon Sep 17 00:00:00 2001 From: Catena cyber <35799796+catenacyber@users.noreply.github.com> Date: Tue, 9 Mar 2021 15:15:37 +0100 Subject: [PATCH] [go-sftp] Add go-sftp project (#5324) --- projects/go-sftp/Dockerfile | 21 +++++++++++++++++++++ projects/go-sftp/build.sh | 18 ++++++++++++++++++ projects/go-sftp/project.yaml | 10 ++++++++++ 3 files changed, 49 insertions(+) create mode 100644 projects/go-sftp/Dockerfile create mode 100755 projects/go-sftp/build.sh create mode 100644 projects/go-sftp/project.yaml diff --git a/projects/go-sftp/Dockerfile b/projects/go-sftp/Dockerfile new file mode 100644 index 000000000..0269d8ee4 --- /dev/null +++ b/projects/go-sftp/Dockerfile @@ -0,0 +1,21 @@ +# Copyright 2021 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +################################################################################ + +FROM gcr.io/oss-fuzz-base/base-builder +RUN git clone --depth 1 https://github.com/pkg/sftp + +COPY build.sh $SRC/ +WORKDIR $SRC/sftp diff --git a/projects/go-sftp/build.sh b/projects/go-sftp/build.sh new file mode 100755 index 000000000..0e8460fc8 --- /dev/null +++ b/projects/go-sftp/build.sh @@ -0,0 +1,18 @@ +#!/bin/bash -eu +# Copyright 2021 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +################################################################################ + +compile_go_fuzzer . Fuzz fuzz_sftp diff --git a/projects/go-sftp/project.yaml b/projects/go-sftp/project.yaml new file mode 100644 index 000000000..5f0d4e9e4 --- /dev/null +++ b/projects/go-sftp/project.yaml @@ -0,0 +1,10 @@ +homepage: "https://github.com/pkg/sftp" +primary_contact: "nicola.murino@gmail.com" +auto_ccs: + - "p.antoine@catenacyber.fr" +language: go +fuzzing_engines: + - libfuzzer +sanitizers: + - address +main_repo: 'https://github.com/pkg/sftp'