From 5bf19bd6932dba8bc985d773ca5b3cbdb1690e3b Mon Sep 17 00:00:00 2001 From: Cuong Manh Le Date: Sat, 14 Aug 2021 11:56:50 +0700 Subject: [PATCH] projects: add celestiaorg/smt (#6134) This project is an implementation of Sparse Merkle tree, which will be used by Celestia, Cosmos SDK, ... and maybe other blockchain ecosystem. We want to make sure the code is fuzzed to catch highly impacted bug as soon as possible. See: - https://github.com/celestiaorg - https://docs.cosmos.network/v0.42/ --- projects/smt/Dockerfile | 21 +++++++++++++++++++++ projects/smt/build.sh | 18 ++++++++++++++++++ projects/smt/project.yaml | 12 ++++++++++++ 3 files changed, 51 insertions(+) create mode 100644 projects/smt/Dockerfile create mode 100755 projects/smt/build.sh create mode 100644 projects/smt/project.yaml diff --git a/projects/smt/Dockerfile b/projects/smt/Dockerfile new file mode 100644 index 000000000..422571b45 --- /dev/null +++ b/projects/smt/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 https://github.com/celestiaorg/smt + +COPY build.sh $SRC +WORKDIR $SRC/smt diff --git a/projects/smt/build.sh b/projects/smt/build.sh new file mode 100755 index 000000000..48547497b --- /dev/null +++ b/projects/smt/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. +# +################################################################################ + +bash -x ./oss-fuzz-build.sh diff --git a/projects/smt/project.yaml b/projects/smt/project.yaml new file mode 100644 index 000000000..471479e5e --- /dev/null +++ b/projects/smt/project.yaml @@ -0,0 +1,12 @@ +homepage: "https://github.com/celestiaorg/smt" +primary_contact: "ismail@celestia.org" +auto_ccs: + - fuzzing@orijtech.com + - emmanuel@orijtech.com + - cuong@orijtech.com +language: go +fuzzing_engines: + - libfuzzer +sanitizers: + - address +main_repo: "https://github.com/celestiaorg/smt"