aboutsummaryrefslogtreecommitdiff
path: root/projects/civetweb
diff options
context:
space:
mode:
authorDavidKorczynski <david@adalogics.com>2021-01-29 22:20:31 +0000
committerGitHub <noreply@github.com>2021-01-29 14:20:31 -0800
commit97e2bbd2349ab1f05f847b5d8645b7dc9fb5e400 (patch)
treeb6a9519a755a421e789da915b5ad926842f6c936 /projects/civetweb
parent0e678a37db8579a826ac3050e5d967a22bf554b7 (diff)
downloadoss-fuzz-97e2bbd2349ab1f05f847b5d8645b7dc9fb5e400.tar.gz
Civetweb: initial integration (#4983)
* civitweb: initial integration. * updated the project.yaml * Trying with a different port. * Trying port 8002. * new port. * Updated the project configurations for civetweb and removed changing of port.
Diffstat (limited to 'projects/civetweb')
-rwxr-xr-xprojects/civetweb/Dockerfile22
-rwxr-xr-xprojects/civetweb/build.sh22
-rwxr-xr-xprojects/civetweb/project.yaml11
3 files changed, 55 insertions, 0 deletions
diff --git a/projects/civetweb/Dockerfile b/projects/civetweb/Dockerfile
new file mode 100755
index 000000000..523cf0107
--- /dev/null
+++ b/projects/civetweb/Dockerfile
@@ -0,0 +1,22 @@
+# 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 apt-get update && apt-get install -y zlib1g-dev
+RUN git clone https://github.com/civetweb/civetweb
+
+WORKDIR $SRC/civetweb
+COPY build.sh $SRC/
diff --git a/projects/civetweb/build.sh b/projects/civetweb/build.sh
new file mode 100755
index 000000000..cd2caeefe
--- /dev/null
+++ b/projects/civetweb/build.sh
@@ -0,0 +1,22 @@
+#!/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.
+#
+################################################################################
+sed -i 's/CFLAGS += -g -fsanitize=address,fuzzer,undefined/#CFLAGS += -g -fsanitize=address,fuzzer,undefined/' ./Makefile
+export LDFLAGS="${LIB_FUZZING_ENGINE} ${CFLAGS}"
+
+chmod +x ./fuzztest/build.sh
+./fuzztest/build.sh
+mv civetweb_fuzz3 $OUT/
diff --git a/projects/civetweb/project.yaml b/projects/civetweb/project.yaml
new file mode 100755
index 000000000..f191b2a7c
--- /dev/null
+++ b/projects/civetweb/project.yaml
@@ -0,0 +1,11 @@
+homepage: "https://github.com/civetweb/civetweb"
+primary_contact: "bel2125@gmail.com"
+language: c
+fuzzing_engines:
+ - libfuzzer
+ - honggfuzz
+ - dataflow
+auto_ccs:
+ - "xt4ubq@gmail.com"
+ - "david@adalogics.com"
+main_repo: 'https://github.com/civetweb/civetweb'