diff --git a/projects/dgraph/Dockerfile b/projects/dgraph/Dockerfile new file mode 100644 index 000000000..4c54df277 --- /dev/null +++ b/projects/dgraph/Dockerfile @@ -0,0 +1,20 @@ +# 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/dgraph-io/dgraph +COPY build.sh $SRC/ +WORKDIR $SRC/dgraph diff --git a/projects/dgraph/build.sh b/projects/dgraph/build.sh new file mode 100644 index 000000000..f8c215b24 --- /dev/null +++ b/projects/dgraph/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 github.com/dgraph-io/dgraph/gql Fuzz parser_fuzzer diff --git a/projects/dgraph/project.yaml b/projects/dgraph/project.yaml new file mode 100644 index 000000000..74971bab7 --- /dev/null +++ b/projects/dgraph/project.yaml @@ -0,0 +1,14 @@ +homepage: "https://dgraph.io" +main_repo: "https://github.com/dgraph-io/dgraph" +primary_contact: "Adam@adalogics.com" +auto_ccs : + - "pawan@dgraph.io" + - "manish@dgraph.io" + - "ibrahim@dgraph.io" + - "daniel@dgraph.io" + - "vvbalaji@dgraph.io" +language: go +fuzzing_engines: + - libfuzzer +sanitizers: + - address