aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdamKorcz <44787359+AdamKorcz@users.noreply.github.com>2020-07-24 22:36:25 +0100
committerGitHub <noreply@github.com>2020-07-24 14:36:25 -0700
commit793ed709079f9b409c06413c196df4d94c105b6d (patch)
tree7426f1a7beb7b1978ed75518b05d1c1d01f47c91
parent70d278bb53147c23c4fc7f2c4528e485c50cfe1f (diff)
downloadoss-fuzz-793ed709079f9b409c06413c196df4d94c105b6d.tar.gz
[Radon] Added project (#4183)
-rw-r--r--projects/radon/Dockerfile20
-rw-r--r--projects/radon/build.sh27
-rw-r--r--projects/radon/project.yaml9
3 files changed, 56 insertions, 0 deletions
diff --git a/projects/radon/Dockerfile b/projects/radon/Dockerfile
new file mode 100644
index 000000000..9dbcd125d
--- /dev/null
+++ b/projects/radon/Dockerfile
@@ -0,0 +1,20 @@
+# Copyright 2020 Google Inc.
+#
+# 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 go get github.com/radondb/radon/src/fuzz/sqlparser
+COPY build.sh $SRC/
+WORKDIR $SRC/
diff --git a/projects/radon/build.sh b/projects/radon/build.sh
new file mode 100644
index 000000000..e8c72804a
--- /dev/null
+++ b/projects/radon/build.sh
@@ -0,0 +1,27 @@
+#/bin/bash -eu
+# Copyright 2020 Google Inc.
+#
+# 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.
+#
+################################################################################
+function compile_fuzzer {
+ path=$1
+ function=$2
+ fuzzer=$3
+
+ go-fuzz -func $function -o $fuzzer.a $path
+
+ $CXX $CXXFLAGS $LIB_FUZZING_ENGINE $fuzzer.a -o $OUT/$fuzzer
+}
+
+compile_fuzzer github.com/radondb/radon/src/fuzz/sqlparser Fuzz fuzz
diff --git a/projects/radon/project.yaml b/projects/radon/project.yaml
new file mode 100644
index 000000000..4e7d192e0
--- /dev/null
+++ b/projects/radon/project.yaml
@@ -0,0 +1,9 @@
+homepage: "https://github.com/radondb/radon"
+primary_contact: "overred.shuttler@gmail.com"
+auto_ccs :
+ - "adam@adalogics.com"
+language: go
+fuzzing_engines:
+ - libfuzzer
+sanitizers:
+ - address